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

Unified Diff: chrome/browser/extensions/api/identity/identity_get_accounts_function.h

Issue 2671653004: Move impl of identity.GetAccounts() extension API to its own file (Closed)
Patch Set: nit Created 3 years, 11 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/identity/identity_get_accounts_function.h
diff --git a/chrome/browser/extensions/api/identity/identity_get_accounts_function.h b/chrome/browser/extensions/api/identity/identity_get_accounts_function.h
new file mode 100644
index 0000000000000000000000000000000000000000..2b5977957981de6778fd15a0f875f97e0a17b8cf
--- /dev/null
+++ b/chrome/browser/extensions/api/identity/identity_get_accounts_function.h
@@ -0,0 +1,29 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_GET_ACCOUNTS_FUNCTION_H_
+#define CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_GET_ACCOUNTS_FUNCTION_H_
+
+#include "chrome/browser/extensions/chrome_extension_function.h"
+#include "extensions/browser/extension_function_histogram_value.h"
+
+namespace extensions {
+
+class IdentityGetAccountsFunction : public ChromeUIThreadExtensionFunction {
+ public:
+ DECLARE_EXTENSION_FUNCTION("identity.getAccounts",
+ IDENTITY_GETACCOUNTS);
+
+ IdentityGetAccountsFunction();
+
+ private:
+ ~IdentityGetAccountsFunction() override;
+
+ // UIThreadExtensionFunction implementation.
+ ExtensionFunction::ResponseAction Run() override;
+};
+
+} // namespace extensions
+
+#endif // CHROME_BROWSER_EXTENSIONS_API_IDENTITY_IDENTITY_GET_ACCOUNTS_FUNCTION_H_

Powered by Google App Engine
This is Rietveld 408576698