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

Side by Side Diff: extensions/test/extension_test_message_listener.cc

Issue 1389163008: Don't use base::MessageLoop::{Quit,QuitClosure} in extensions/, ipc/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "extensions/test/extension_test_message_listener.h" 5 #include "extensions/test/extension_test_message_listener.h"
6 6
7 #include "base/strings/string_number_conversions.h" 7 #include "base/strings/string_number_conversions.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "content/public/browser/notification_service.h" 9 #include "content/public/browser/notification_service.h"
10 #include "content/public/browser/notification_source.h" 10 #include "content/public/browser/notification_source.h"
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 satisfied_ = true; 103 satisfied_ = true;
104 failed_ = (message_ == failure_message_); 104 failed_ = (message_ == failure_message_);
105 105
106 // Reply immediately, or save the function for future use. 106 // Reply immediately, or save the function for future use.
107 function_ = function; 107 function_ = function;
108 if (!will_reply_) 108 if (!will_reply_)
109 Reply(std::string()); 109 Reply(std::string());
110 110
111 if (waiting_) { 111 if (waiting_) {
112 waiting_ = false; 112 waiting_ = false;
113 base::MessageLoopForUI::current()->Quit(); 113 base::MessageLoopForUI::current()->QuitWhenIdle();
114 } 114 }
115 } 115 }
116 } 116 }
OLDNEW
« no previous file with comments | « extensions/shell/browser/shell_desktop_controller_aura.cc ('k') | ipc/ipc_channel_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698