| Index: chrome/browser/extensions/api/identity/identity_api.cc
|
| diff --git a/chrome/browser/extensions/api/identity/identity_api.cc b/chrome/browser/extensions/api/identity/identity_api.cc
|
| index 44d1e1379404a969e9e4d40e3662e863c1637b60..7de43edec2b7a7c1502b11bad582eb2fc062bf07 100644
|
| --- a/chrome/browser/extensions/api/identity/identity_api.cc
|
| +++ b/chrome/browser/extensions/api/identity/identity_api.cc
|
| @@ -224,32 +224,4 @@ void BrowserContextKeyedAPIFactory<IdentityAPI>::DeclareFactoryDependencies() {
|
| DependsOn(ProfileOAuth2TokenServiceFactory::GetInstance());
|
| }
|
|
|
| -IdentityGetAccountsFunction::IdentityGetAccountsFunction() {
|
| -}
|
| -
|
| -IdentityGetAccountsFunction::~IdentityGetAccountsFunction() {
|
| -}
|
| -
|
| -ExtensionFunction::ResponseAction IdentityGetAccountsFunction::Run() {
|
| - if (GetProfile()->IsOffTheRecord()) {
|
| - return RespondNow(Error(identity_constants::kOffTheRecord));
|
| - }
|
| -
|
| - std::vector<std::string> gaia_ids =
|
| - IdentityAPI::GetFactoryInstance()->Get(GetProfile())->GetAccounts();
|
| - DCHECK(gaia_ids.size() < 2 || switches::IsExtensionsMultiAccount());
|
| -
|
| - std::unique_ptr<base::ListValue> infos(new base::ListValue());
|
| -
|
| - for (std::vector<std::string>::const_iterator it = gaia_ids.begin();
|
| - it != gaia_ids.end();
|
| - ++it) {
|
| - api::identity::AccountInfo account_info;
|
| - account_info.id = *it;
|
| - infos->Append(account_info.ToValue());
|
| - }
|
| -
|
| - return RespondNow(OneArgument(std::move(infos)));
|
| -}
|
| -
|
| } // namespace extensions
|
|
|