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

Unified Diff: base/message_loop.cc

Issue 10689161: Adds MessageLoopUIApplication for use on iOS. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 5 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
Index: base/message_loop.cc
diff --git a/base/message_loop.cc b/base/message_loop.cc
index 8eb4e3bb3a4b3835a40849be09ff7ee7fde43991..f3bb4bb1a74b2a407824c123730050dd579f3914 100644
--- a/base/message_loop.cc
+++ b/base/message_loop.cc
@@ -720,6 +720,12 @@ void MessageLoopForUI::Start() {
}
#endif
+#if defined(OS_IOS)
+void MessageLoopForUI::Attach() {
+ static_cast<base::MessagePumpUIApplication*>(pump_.get())->Attach(this);
+}
+#endif
+
#if !defined(OS_MACOSX) && !defined(OS_NACL) && !defined(OS_ANDROID)
void MessageLoopForUI::AddObserver(Observer* observer) {
pump_ui()->AddObserver(observer);

Powered by Google App Engine
This is Rietveld 408576698