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

Side by Side Diff: chrome/browser/chromeos/login/screenshot_testing/screenshot_testing_mixin.cc

Issue 2571473002: Fix cases where RunLoop is created without a MessageLoop. (Closed)
Patch Set: Fix chromeos tests. Created 4 years 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "chrome/browser/chromeos/login/screenshot_testing/screenshot_testing_mi xin.h" 5 #include "chrome/browser/chromeos/login/screenshot_testing/screenshot_testing_mi xin.h"
6 6
7 #include "base/run_loop.h"
7 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
8 #include "chrome/browser/chrome_notification_types.h" 9 #include "chrome/browser/chrome_notification_types.h"
9 #include "content/public/browser/browser_thread.h" 10 #include "content/public/browser/browser_thread.h"
10 #include "content/public/browser/notification_service.h" 11 #include "content/public/browser/notification_service.h"
11 #include "content/public/browser/notification_types.h" 12 #include "content/public/browser/notification_types.h"
12 #include "ui/compositor/compositor_switches.h" 13 #include "ui/compositor/compositor_switches.h"
13 14
14 namespace chromeos { 15 namespace chromeos {
15 16
16 ScreenshotTestingMixin::ScreenshotTestingMixin() 17 ScreenshotTestingMixin::ScreenshotTestingMixin()
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 waiter.Run(); 58 waiter.Run();
58 } 59 }
59 60
60 void ScreenshotTestingMixin::HandleAnimationLoad() { 61 void ScreenshotTestingMixin::HandleAnimationLoad() {
61 timer_.Stop(); 62 timer_.Stop();
62 content::BrowserThread::PostTask( 63 content::BrowserThread::PostTask(
63 content::BrowserThread::UI, FROM_HERE, animation_waiter_quitter_); 64 content::BrowserThread::UI, FROM_HERE, animation_waiter_quitter_);
64 } 65 }
65 66
66 } // namespace chromeos 67 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698