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

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

Issue 2298493003: [Extensions] Convert some ChromeSyncExtensionFunctions (Closed)
Patch Set: fix 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/first_run_private_api.h
diff --git a/chrome/browser/chromeos/extensions/first_run_private_api.h b/chrome/browser/chromeos/extensions/first_run_private_api.h
index 95b9bbd81648ae9302f689337fc59488192877b9..52212cea141d8baf087f62f0de0445da001aac28 100644
--- a/chrome/browser/chromeos/extensions/first_run_private_api.h
+++ b/chrome/browser/chromeos/extensions/first_run_private_api.h
@@ -6,11 +6,11 @@
#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_
#include "base/compiler_specific.h"
-#include "chrome/browser/extensions/chrome_extension_function.h"
#include "chrome/common/extensions/api/first_run_private.h"
+#include "extensions/browser/extension_function.h"
class FirstRunPrivateGetLocalizedStringsFunction
- : public ChromeSyncExtensionFunction {
+ : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("firstRunPrivate.getLocalizedStrings",
FIRSTRUNPRIVATE_GETLOCALIZEDSTRINGS)
@@ -18,12 +18,11 @@ class FirstRunPrivateGetLocalizedStringsFunction
protected:
~FirstRunPrivateGetLocalizedStringsFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
-class FirstRunPrivateLaunchTutorialFunction
- : public ChromeSyncExtensionFunction {
+class FirstRunPrivateLaunchTutorialFunction : public UIThreadExtensionFunction {
public:
DECLARE_EXTENSION_FUNCTION("firstRunPrivate.launchTutorial",
FIRSTRUNPRIVATE_LAUNCHTUTORIAL)
@@ -31,8 +30,8 @@ class FirstRunPrivateLaunchTutorialFunction
protected:
~FirstRunPrivateLaunchTutorialFunction() override {}
- // SyncExtensionFunction overrides.
- bool RunSync() override;
+ // ExtensionFunction:
+ ResponseAction Run() override;
};
#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_FIRST_RUN_PRIVATE_API_H_
« no previous file with comments | « chrome/browser/chromeos/extensions/echo_private_api.cc ('k') | chrome/browser/chromeos/extensions/first_run_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698