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

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

Issue 14113053: chrome: Use base::MessageLoop. (Part 3) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/browser/extensions/extension_service.cc
diff --git a/chrome/browser/extensions/extension_service.cc b/chrome/browser/extensions/extension_service.cc
index a2369e9144ca80b51dfab0492666543f340567c8..79015444e5b5954cb49d29f6a65d5ed62a1b8520 100644
--- a/chrome/browser/extensions/extension_service.cc
+++ b/chrome/browser/extensions/extension_service.cc
@@ -1966,7 +1966,7 @@ void ExtensionService::GarbageCollectExtensions() {
// Don't garbage collect while there are pending installations, which may
// be using the temporary installation directory. Try to garbage collect
// again later.
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&ExtensionService::GarbageCollectExtensions, AsWeakPtr()),
base::TimeDelta::FromSeconds(kGarbageCollectRetryDelay));
@@ -2631,12 +2631,11 @@ void ExtensionService::Observe(int type,
// at all, but never half-crashed. We do it in a PostTask so
// that other handlers of this notification will still have
// access to the Extension and ExtensionHost.
- MessageLoop::current()->PostTask(
+ base::MessageLoop::current()->PostTask(
FROM_HERE,
- base::Bind(
- &ExtensionService::TrackTerminatedExtension,
- AsWeakPtr(),
- host->extension()));
+ base::Bind(&ExtensionService::TrackTerminatedExtension,
+ AsWeakPtr(),
+ host->extension()));
break;
}
case content::NOTIFICATION_RENDERER_PROCESS_CREATED: {
@@ -2699,10 +2698,11 @@ void ExtensionService::Observe(int type,
if (delayed_updates_for_idle_.Contains(extension_id)) {
// We were waiting for this extension to become idle, it now might have,
// so maybe finish installation.
- MessageLoop::current()->PostDelayedTask(
+ base::MessageLoop::current()->PostDelayedTask(
FROM_HERE,
base::Bind(&ExtensionService::MaybeFinishDelayedInstallation,
- AsWeakPtr(), extension_id),
+ AsWeakPtr(),
+ extension_id),
brettw 2013/04/28 04:26:27 This was fine on the previous line.
base::TimeDelta::FromSeconds(kUpdateIdleDelay));
}
break;

Powered by Google App Engine
This is Rietveld 408576698