OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |