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

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

Issue 1143323005: Refactor AO2TS to make it easier to componentize. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address final comments Created 5 years, 6 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
« no previous file with comments | « extensions/shell/app_shell.gypi ('k') | extensions/shell/browser/shell_oauth2_token_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 8fb4fbb0495de597d234a09b0cacc4b8a1c7a5d5..bf8ad1f8fdace351a81d6560279ba6e22278a8f4 100644
--- a/extensions/shell/browser/api/identity/identity_api.cc
+++ b/extensions/shell/browser/api/identity/identity_api.cc
@@ -65,7 +65,7 @@ ExtensionFunction::ResponseAction IdentityGetAuthTokenFunction::Run() {
EXTENSION_FUNCTION_VALIDATE(params.get());
ShellOAuth2TokenService* service = ShellOAuth2TokenService::GetInstance();
- std::string account_id = service->account_id();
+ std::string account_id = service->AccountId();
if (account_id.empty())
return RespondNow(Error(kErrorNoUserAccount));
@@ -85,7 +85,7 @@ ExtensionFunction::ResponseAction IdentityGetAuthTokenFunction::Run() {
// that will be returned to the app.
std::set<std::string> no_scopes;
access_token_request_ =
- service->StartRequest(service->account_id(), no_scopes, this);
+ service->StartRequest(service->AccountId(), no_scopes, this);
return RespondLater();
}
« no previous file with comments | « extensions/shell/app_shell.gypi ('k') | extensions/shell/browser/shell_oauth2_token_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698