Commit 7b662cbb authored by jhawkins@chromium.org's avatar jhawkins@chromium.org

Coverity: Fix pass-by-value.

CID_COUNT=1
CID=103438
TEST=none
BUG=none
R=groby

Review URL: https://chromiumcodereview.appspot.com/9596001

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124880 0039d316-1c4b-4281-b951-d872f2087c98
parent 5f285817
......@@ -137,7 +137,8 @@ void OAuth2MintTokenFetcher::OnMintTokenSuccess(
consumer_->OnMintTokenSuccess(access_token);
}
void OAuth2MintTokenFetcher::OnMintTokenFailure(GoogleServiceAuthError error) {
void OAuth2MintTokenFetcher::OnMintTokenFailure(
const GoogleServiceAuthError& error) {
state_ = ERROR_STATE;
consumer_->OnMintTokenFailure(error);
}
......
......@@ -69,9 +69,9 @@ class OAuth2MintTokenFetcher : public content::URLFetcherDelegate {
void StartMintToken();
void EndMintToken(const content::URLFetcher* source);
// Helper mehtods for reporting back results.
// Helper methods for reporting back results.
void OnMintTokenSuccess(const std::string& access_token);
void OnMintTokenFailure(GoogleServiceAuthError error);
void OnMintTokenFailure(const GoogleServiceAuthError& error);
// Other helpers.
static GURL MakeMintTokenUrl();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment