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

Unified Diff: chrome/browser/google_apis/operation_runner.cc

Issue 15987009: Update chrome/ to use WeakPtr<T>::get() instead of implicit "operator T*" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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
Index: chrome/browser/google_apis/operation_runner.cc
diff --git a/chrome/browser/google_apis/operation_runner.cc b/chrome/browser/google_apis/operation_runner.cc
index 0b419da1dcd3e46df5a85d9954596447cb1b4983..a4d5c0db9a759f5315a7f0a5f6eb433ab2e30d18 100644
--- a/chrome/browser/google_apis/operation_runner.cc
+++ b/chrome/browser/google_apis/operation_runner.cc
@@ -66,12 +66,12 @@ void OperationRunner::OnAccessTokenFetched(
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
// Do nothing if the operation is canceled during authentication.
- if (!operation)
+ if (!operation.get())
return;
if (code == HTTP_SUCCESS) {
DCHECK(auth_service_->HasAccessToken());
- StartOperationWithRetry(operation);
+ StartOperationWithRetry(operation.get());
} else {
operation->OnAuthFailed(code);
}
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.cc ('k') | chrome/browser/history/delete_directive_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698