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

Unified Diff: chrome/browser/extensions/api/preferences_private/preferences_private_api.cc

Issue 257333002: Drive extension functions from ExtensionFunction::Run. The (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix comment 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
Index: chrome/browser/extensions/api/preferences_private/preferences_private_api.cc
diff --git a/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc b/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc
index c85fc04c223284218244a2f37fb34c8461cf8aa4..98a89f02b2e2a23c5d6299116dabba761c3e7c26 100644
--- a/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc
+++ b/chrome/browser/extensions/api/preferences_private/preferences_private_api.cc
@@ -27,12 +27,12 @@ PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction::OnStateChanged() {
ProfileSyncServiceFactory::GetForProfile(GetProfile());
if (sync_service->sync_initialized()) {
sync_service->RemoveObserver(this);
- RunImpl();
- Release(); // Balanced in RunImpl().
+ RunAsync();
+ Release(); // Balanced in RunAsync().
}
}
-bool PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction::RunImpl() {
+bool PreferencesPrivateGetSyncCategoriesWithoutPassphraseFunction::RunAsync() {
ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetForProfile(GetProfile());
if (!sync_service)

Powered by Google App Engine
This is Rietveld 408576698