Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Unified Diff: base/message_loop.cc

Issue 12047068: Add apk for running content_browsertests (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments Created 7 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/message_loop.h ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 542802672927403a6d57f35ed65f11bc5d10d502..0a6bf6c03179c5afbb92890550426b9089321314 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -251,9 +251,12 @@ void MessageLoop::EnableHistogrammer(bool enable) {
}
// static
-void MessageLoop::InitMessagePumpForUIFactory(MessagePumpFactory* factory) {
- DCHECK(!message_pump_for_ui_factory_);
+bool MessageLoop::InitMessagePumpForUIFactory(MessagePumpFactory* factory) {
+ if (message_pump_for_ui_factory_)
+ return false;
+
message_pump_for_ui_factory_ = factory;
+ return true;
}
void MessageLoop::AddDestructionObserver(
« no previous file with comments | « base/message_loop.h ('k') | base/test/test_support_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698