X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fchrome%2Fbrowser%2Fsignin%2Ffake_profile_oauth2_token_service.cc;h=89ba6eaefc794bd58745bec144e338129fb5d1e3;hb=1afa4dd80ef85af7c90efaea6959db1d92330844;hp=f05a6a2b2897e42405002040aa328cce726b81cd;hpb=90762837333c13ccf56f2ad88e4481fc71e8d281;p=platform%2Fframework%2Fweb%2Fcrosswalk.git diff --git a/src/chrome/browser/signin/fake_profile_oauth2_token_service.cc b/src/chrome/browser/signin/fake_profile_oauth2_token_service.cc index f05a6a2..89ba6ea 100644 --- a/src/chrome/browser/signin/fake_profile_oauth2_token_service.cc +++ b/src/chrome/browser/signin/fake_profile_oauth2_token_service.cc @@ -57,7 +57,7 @@ void FakeProfileOAuth2TokenService::IssueRefreshToken( void FakeProfileOAuth2TokenService::IssueRefreshTokenForUser( const std::string& account_id, const std::string& token) { - ScopedBacthChange batch(this); + ScopedBatchChange batch(this); if (token.empty()) { refresh_tokens_.erase(account_id); FireRefreshTokenRevoked(account_id); @@ -140,10 +140,9 @@ void FakeProfileOAuth2TokenService::CompleteRequests( GetPendingRequests(); // Walk the requests and notify the callbacks. - for (std::vector::iterator it = pending_requests_.begin(); - it != pending_requests_.end(); ++it) { - if (!it->request) - continue; + for (std::vector::iterator it = requests.begin(); + it != requests.end(); ++it) { + DCHECK(it->request); bool scope_matches = all_scopes || it->scopes == scope; bool account_matches = account_id.empty() || account_id == it->account_id;