Bug 1081010 - Part 1: Fix -Wswitch warning in ipc/chromium. r=tabraldes
authorChris Peterson <cpeterson@mozilla.com>
Thu, 09 Oct 2014 23:46:16 -0700
changeset 210844 73be31bb8122d78dd6d59be2d81179cdf7b79241
parent 210843 01d25edea2bc80f6d27d74704f9f9364c2eab63a
child 210845 3d9c386f1c0ecad8b5aa2d275994c49ab8fcd0c5
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewerstabraldes
bugs1081010
milestone36.0a1
Bug 1081010 - Part 1: Fix -Wswitch warning in ipc/chromium. r=tabraldes
ipc/chromium/src/base/message_loop.cc
--- a/ipc/chromium/src/base/message_loop.cc
+++ b/ipc/chromium/src/base/message_loop.cc
@@ -120,16 +120,19 @@ MessageLoop::MessageLoop(Type type)
   case TYPE_MOZILLA_NONMAINTHREAD:
     pump_ = new mozilla::ipc::MessagePumpForNonMainThreads();
     return;
 #if defined(OS_WIN)
   case TYPE_MOZILLA_NONMAINUITHREAD:
     pump_ = new mozilla::ipc::MessagePumpForNonMainUIThreads();
     return;
 #endif
+  default:
+    // Create one of Chromium's standard MessageLoop types below.
+    break;
   }
 
 #if defined(OS_WIN)
   // TODO(rvargas): Get rid of the OS guards.
   if (type_ == TYPE_DEFAULT) {
     pump_ = new base::MessagePumpDefault();
   } else if (type_ == TYPE_IO) {
     pump_ = new base::MessagePumpForIO();