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

Unified Diff: chrome/browser/chrome_to_mobile_service.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/chrome_to_mobile_service.cc
diff --git a/chrome/browser/chrome_to_mobile_service.cc b/chrome/browser/chrome_to_mobile_service.cc
index dfb42f79ea008b10a5c2674fcbefe47a081ffabc..e2449c92a88b02eab278d2dff395d3e431768262 100644
--- a/chrome/browser/chrome_to_mobile_service.cc
+++ b/chrome/browser/chrome_to_mobile_service.cc
@@ -747,7 +747,7 @@ void ChromeToMobileService::HandleSubmitResponse(
// Check if the observer is waiting on a second response (url or snapshot).
for (RequestObserverMap::iterator other = request_observer_map_.begin();
observer.get() && (other != request_observer_map_.end()); ++other) {
- if (other->second == observer) {
+ if (other->second.get() == observer.get()) {
// Delay reporting success until the second response is received.
if (success)
return;
« no previous file with comments | « chrome/browser/automation/testing_automation_provider.cc ('k') | chrome/browser/download/download_request_infobar_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698