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

Unified Diff: chrome/browser/extensions/api/developer_private/developer_private_api.h

Issue 954943007: [Extensions] Make chrome://extensions use api functions for file access, reload (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/developer_private/developer_private_api.h
diff --git a/chrome/browser/extensions/api/developer_private/developer_private_api.h b/chrome/browser/extensions/api/developer_private/developer_private_api.h
index 4023560beb87c3e1961bcea86cf5a674d3749ad6..cb455a0b9a4e829bf3d3aa09a3a4dbae7e8ba8b4 100644
--- a/chrome/browser/extensions/api/developer_private/developer_private_api.h
+++ b/chrome/browser/extensions/api/developer_private/developer_private_api.h
@@ -228,7 +228,7 @@ class DeveloperPrivateInspectFunction : public ChromeSyncExtensionFunction {
};
class DeveloperPrivateAllowFileAccessFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("developerPrivate.allowFileAccess",
DEVELOPERPRIVATE_ALLOWFILEACCESS);
@@ -237,7 +237,7 @@ class DeveloperPrivateAllowFileAccessFunction
~DeveloperPrivateAllowFileAccessFunction() override;
// ExtensionFunction:
- bool RunSync() override;
+ ResponseAction Run() override;
};
class DeveloperPrivateAllowIncognitoFunction
@@ -253,7 +253,7 @@ class DeveloperPrivateAllowIncognitoFunction
ResponseAction Run() override;
};
-class DeveloperPrivateReloadFunction : public ChromeSyncExtensionFunction {
+class DeveloperPrivateReloadFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("developerPrivate.reload",
DEVELOPERPRIVATE_RELOAD);
@@ -262,7 +262,7 @@ class DeveloperPrivateReloadFunction : public ChromeSyncExtensionFunction {
~DeveloperPrivateReloadFunction() override;
// ExtensionFunction:
- bool RunSync() override;
+ ResponseAction Run() override;
};
class DeveloperPrivateShowPermissionsDialogFunction

Powered by Google App Engine
This is Rietveld 408576698