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

Unified Diff: extensions/shell/browser/api/identity/identity_api.cc

Issue 804673002: app_shell: Extend identity API stub (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@unlimited-storage
Patch Set: (identity-stub) rebase Created 6 years 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: extensions/shell/browser/api/identity/identity_api.cc
diff --git a/extensions/shell/browser/api/identity/identity_api.cc b/extensions/shell/browser/api/identity/identity_api.cc
index c1dca280f7c308c9c6b9a9aaeb9f1197bc28c179..c87fac1da3668cdb97bb9a2d3c9dbee41976b87d 100644
--- a/extensions/shell/browser/api/identity/identity_api.cc
+++ b/extensions/shell/browser/api/identity/identity_api.cc
@@ -72,5 +72,23 @@ void IdentityGetAuthTokenFunction::OnGetTokenFailure(
Release(); // Balanced in Run().
}
+///////////////////////////////////////////////////////////////////////////////
+
+IdentityRemoveCachedAuthTokenFunction::IdentityRemoveCachedAuthTokenFunction() {
+}
+
+IdentityRemoveCachedAuthTokenFunction::
+ ~IdentityRemoveCachedAuthTokenFunction() {
+}
+
+ExtensionFunction::ResponseAction IdentityRemoveCachedAuthTokenFunction::Run() {
+ scoped_ptr<api::identity::RemoveCachedAuthToken::Params> params(
+ api::identity::RemoveCachedAuthToken::Params::Create(*args_));
+ EXTENSION_FUNCTION_VALIDATE(params.get());
+ // This stub identity API does not maintain a token cache, so there is nothing
+ // to remove.
+ return RespondNow(NoArguments());
+}
+
} // namespace shell
} // namespace extensions
« no previous file with comments | « extensions/shell/browser/api/identity/identity_api.h ('k') | extensions/shell/browser/api/identity/identity_api_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698