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

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

Issue 235483005: extensions: Use base::RunLoop instead of deprecated MessageLoop methods. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/startup_helper.cc
diff --git a/chrome/browser/extensions/startup_helper.cc b/chrome/browser/extensions/startup_helper.cc
index e6f74a7c6e4eedd734dd81e187907ee6f4190df0..605a93194f687d206e44bcbfe085f1988246d548 100644
--- a/chrome/browser/extensions/startup_helper.cc
+++ b/chrome/browser/extensions/startup_helper.cc
@@ -293,10 +293,10 @@ bool StartupHelper::InstallFromWebstore(const CommandLine& cmd_line,
}
AppInstallHelper helper;
- helper.BeginInstall(
- profile, id, true, base::MessageLoop::QuitWhenIdleClosure());
+ base::RunLoop run_loop;
+ helper.BeginInstall(profile, id, true, run_loop.QuitClosure());
+ run_loop.Run();
- base::MessageLoop::current()->Run();
if (!helper.success())
LOG(ERROR) << "InstallFromWebstore failed with error: " << helper.error();
return helper.success();
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698