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

Unified Diff: chrome/browser/chromeos/extensions/wallpaper_private_api.h

Issue 2236703002: [Extensions] Convert some SyncExtensionFunctions (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nulltpr Created 4 years, 4 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/chromeos/extensions/wallpaper_private_api.h
diff --git a/chrome/browser/chromeos/extensions/wallpaper_private_api.h b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
index fecd2798820e0a088a494a857e48f8f22bdaa47b..9e856d0697e0da3fe9aa00d6380efc5647361bd7 100644
--- a/chrome/browser/chromeos/extensions/wallpaper_private_api.h
+++ b/chrome/browser/chromeos/extensions/wallpaper_private_api.h
@@ -24,7 +24,7 @@ class UserImage;
} // namespace chromeos
// Wallpaper manager strings.
-class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction {
+class WallpaperPrivateGetStringsFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getStrings",
WALLPAPERPRIVATE_GETSTRINGS)
@@ -32,12 +32,13 @@ class WallpaperPrivateGetStringsFunction : public SyncExtensionFunction {
protected:
~WallpaperPrivateGetStringsFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
// Check if sync themes setting is enabled.
-class WallpaperPrivateGetSyncSettingFunction : public SyncExtensionFunction {
+class WallpaperPrivateGetSyncSettingFunction
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.getSyncSetting",
WALLPAPERPRIVATE_GETSYNCSETTING)
@@ -45,8 +46,8 @@ class WallpaperPrivateGetSyncSettingFunction : public SyncExtensionFunction {
protected:
~WallpaperPrivateGetSyncSettingFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
class WallpaperPrivateSetWallpaperIfExistsFunction
@@ -309,7 +310,7 @@ class WallpaperPrivateGetOfflineWallpaperListFunction
// The wallpaper UMA is recorded when a new wallpaper is set, either by the
// built-in Wallpaper Picker App, or by a third party App.
class WallpaperPrivateRecordWallpaperUMAFunction
- : public SyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("wallpaperPrivate.recordWallpaperUMA",
WALLPAPERPRIVATE_RECORDWALLPAPERUMA)
@@ -317,8 +318,8 @@ class WallpaperPrivateRecordWallpaperUMAFunction
protected:
~WallpaperPrivateRecordWallpaperUMAFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_WALLPAPER_PRIVATE_API_H_
« no previous file with comments | « chrome/browser/chromeos/extensions/info_private_api.cc ('k') | chrome/browser/chromeos/extensions/wallpaper_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698