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

Unified Diff: chrome/browser/google/google_update_win.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/google/google_update_win.cc
diff --git a/chrome/browser/google/google_update_win.cc b/chrome/browser/google/google_update_win.cc
index cfa08c6a57cb2bbbf9794943403dbcebe5e831a2..bd73a74ecae1af9967b98045da60f0614d4d0289 100644
--- a/chrome/browser/google/google_update_win.cc
+++ b/chrome/browser/google/google_update_win.cc
@@ -176,7 +176,7 @@ class GoogleUpdateJobObserver
// No longer need to spin the message loop that started spinning in
// InitiateGoogleUpdateCheck.
- MessageLoop::current()->Quit();
+ base::MessageLoop::current()->Quit();
return S_OK;
}
STDMETHOD(SetEventSink)(IProgressWndEvents* event_sink) {
@@ -238,7 +238,7 @@ void GoogleUpdate::CheckForUpdate(bool install_if_newer, HWND window) {
BrowserThread::PostTask(
BrowserThread::FILE, FROM_HERE,
base::Bind(&GoogleUpdate::InitiateGoogleUpdateCheck, this,
- install_if_newer, window, MessageLoop::current()));
+ install_if_newer, window, base::MessageLoop::current()));
}
////////////////////////////////////////////////////////////////////////////////
@@ -246,7 +246,7 @@ void GoogleUpdate::CheckForUpdate(bool install_if_newer, HWND window) {
void GoogleUpdate::InitiateGoogleUpdateCheck(bool install_if_newer,
HWND window,
- MessageLoop* main_loop) {
+ base::MessageLoop* main_loop) {
base::FilePath chrome_exe;
if (!PathService::Get(base::DIR_EXE, &chrome_exe))
NOTREACHED();
@@ -337,7 +337,7 @@ void GoogleUpdate::InitiateGoogleUpdateCheck(bool install_if_newer,
// can report back to us through GoogleUpdateJobObserver. This message loop
// will terminate once Google Update sends us the completion status
// (success/error). See OnComplete().
- MessageLoop::current()->Run();
+ base::MessageLoop::current()->Run();
GoogleUpdateUpgradeResult results;
hr = job_observer->GetResult(&results);
@@ -395,7 +395,7 @@ void GoogleUpdate::ReportResults(GoogleUpdateUpgradeResult results,
bool GoogleUpdate::ReportFailure(HRESULT hr,
GoogleUpdateErrorCode error_code,
const string16& error_message,
- MessageLoop* main_loop) {
+ base::MessageLoop* main_loop) {
NOTREACHED() << "Communication with Google Update failed: " << hr
<< " error: " << error_code
<< ", message: " << error_message.c_str();
« no previous file with comments | « chrome/browser/geolocation/geolocation_settings_state_unittest.cc ('k') | chrome/browser/google/google_url_tracker.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698