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

Unified Diff: chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm

Issue 1395103003: Don't use base::MessageLoop::{Quit,QuitClosure} in chrome/ (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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm b/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm
index 61ef358bf4afe572f1566507db01955b501ea0d6..426196217af0e12ffa9d4d4097211368f244acee 100644
--- a/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm
+++ b/chrome/browser/ui/cocoa/location_bar/zoom_decoration_browsertest.mm
@@ -64,9 +64,10 @@ class ZoomDecorationTest : public InProcessBrowserTest {
void OnZoomChanged(const content::HostZoomMap::ZoomLevelChange& host) {
if (should_quit_on_zoom_) {
- base::MessageLoop::current()->PostTask(FROM_HERE, base::Bind(
- &base::MessageLoop::Quit,
- base::Unretained(base::MessageLoop::current())));
+ base::MessageLoop::current()->PostTask(
+ FROM_HERE,
+ base::Bind(&base::MessageLoop::QuitWhenIdle,
+ base::Unretained(base::MessageLoop::current())));
}
}

Powered by Google App Engine
This is Rietveld 408576698