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

Unified Diff: chrome/browser/chromeos/extensions/file_manager/private_api_misc.h

Issue 2335213004: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: Created 4 years, 3 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/file_manager/private_api_misc.h
diff --git a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
index 4bf912a47ff200d7a815768abb4578c1bb7d835c..d7685c21db6ce9c127ecb5300ec41720e9d4bbd9 100644
--- a/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
+++ b/chrome/browser/chromeos/extensions/file_manager/private_api_misc.h
@@ -27,7 +27,7 @@ namespace extensions {
// Implements the chrome.fileManagerPrivate.logoutUserForReauthentication
// method.
class FileManagerPrivateLogoutUserForReauthenticationFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.logoutUserForReauthentication",
FILEMANAGERPRIVATE_LOGOUTUSERFORREAUTHENTICATION)
@@ -35,14 +35,14 @@ class FileManagerPrivateLogoutUserForReauthenticationFunction
protected:
~FileManagerPrivateLogoutUserForReauthenticationFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
// Implements the chrome.fileManagerPrivate.getPreferences method.
// Gets settings for Files.app.
class FileManagerPrivateGetPreferencesFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getPreferences",
FILEMANAGERPRIVATE_GETPREFERENCES)
@@ -50,13 +50,13 @@ class FileManagerPrivateGetPreferencesFunction
protected:
~FileManagerPrivateGetPreferencesFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
// Implements the chrome.fileManagerPrivate.setPreferences method.
// Sets settings for Files.app.
class FileManagerPrivateSetPreferencesFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.setPreferences",
FILEMANAGERPRIVATE_SETPREFERENCES)
@@ -64,7 +64,7 @@ class FileManagerPrivateSetPreferencesFunction
protected:
~FileManagerPrivateSetPreferencesFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
// Implements the chrome.fileManagerPrivate.zipSelection method.
@@ -92,7 +92,7 @@ class FileManagerPrivateInternalZipSelectionFunction
// WebContents.
// TODO(hirono): Remove this function once the zoom level change is supported
// for all apps. crbug.com/227175.
-class FileManagerPrivateZoomFunction : public ChromeSyncExtensionFunction {
+class FileManagerPrivateZoomFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.zoom",
FILEMANAGERPRIVATE_ZOOM);
@@ -100,8 +100,8 @@ class FileManagerPrivateZoomFunction : public ChromeSyncExtensionFunction {
protected:
~FileManagerPrivateZoomFunction() override {}
- // AsyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
class FileManagerPrivateRequestWebStoreAccessTokenFunction
@@ -123,8 +123,7 @@ class FileManagerPrivateRequestWebStoreAccessTokenFunction
const std::string& access_token);
};
-class FileManagerPrivateGetProfilesFunction
- : public ChromeSyncExtensionFunction {
+class FileManagerPrivateGetProfilesFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.getProfiles",
FILEMANAGERPRIVATE_GETPROFILES);
@@ -132,13 +131,13 @@ class FileManagerPrivateGetProfilesFunction
protected:
~FileManagerPrivateGetProfilesFunction() override {}
- // AsyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
// Implements the chrome.fileManagerPrivate.openInspector method.
class FileManagerPrivateOpenInspectorFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("fileManagerPrivate.openInspector",
FILEMANAGERPRIVATE_OPENINSPECTOR);
@@ -146,7 +145,7 @@ class FileManagerPrivateOpenInspectorFunction
protected:
~FileManagerPrivateOpenInspectorFunction() override {}
- bool RunSync() override;
+ ResponseAction Run() override;
};
// Implements the chrome.fileManagerPrivate.getMimeType method.

Powered by Google App Engine
This is Rietveld 408576698