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

Unified Diff: chrome/browser/extensions/extension_icon_image_unittest.cc

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase again Created 7 years, 7 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/extensions/extension_icon_image_unittest.cc
diff --git a/chrome/browser/extensions/extension_icon_image_unittest.cc b/chrome/browser/extensions/extension_icon_image_unittest.cc
index fcb5af959c1bd46dd1d32801b2cc006ffe9ce7be..f6bee7f848b3b5252a6a644edb4adf4595e73171 100644
--- a/chrome/browser/extensions/extension_icon_image_unittest.cc
+++ b/chrome/browser/extensions/extension_icon_image_unittest.cc
@@ -82,7 +82,7 @@ class TestImageLoader {
image_ = image;
image_loaded_ = true;
if (waiting_)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
SkBitmap LoadBitmap(const std::string& path,
@@ -98,7 +98,7 @@ class TestImageLoader {
// asynchronously), wait for it.
if (!image_loaded_) {
waiting_ = true;
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
waiting_ = false;
}
@@ -132,7 +132,7 @@ class ExtensionIconImageTest : public testing::Test,
void WaitForImageLoad() {
quit_in_image_loaded_ = true;
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
quit_in_image_loaded_ = false;
}
@@ -179,7 +179,7 @@ class ExtensionIconImageTest : public testing::Test,
virtual void OnExtensionIconImageChanged(IconImage* image) OVERRIDE {
image_loaded_count_++;
if (quit_in_image_loaded_)
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
}
gfx::ImageSkia GetDefaultIcon() {
@@ -199,7 +199,7 @@ class ExtensionIconImageTest : public testing::Test,
private:
int image_loaded_count_;
bool quit_in_image_loaded_;
- MessageLoop ui_loop_;
+ base::MessageLoop ui_loop_;
content::TestBrowserThread ui_thread_;
content::TestBrowserThread file_thread_;
content::TestBrowserThread io_thread_;
« no previous file with comments | « chrome/browser/extensions/extension_host.cc ('k') | chrome/browser/extensions/extension_icon_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698