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

Unified Diff: chrome/browser/upgrade_detector_impl.h

Issue 8513020: base::Bind migrations in chrome/browser (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: tweak Created 9 years, 1 month 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/upgrade_detector_impl.h
===================================================================
--- chrome/browser/upgrade_detector_impl.h (revision 110185)
+++ chrome/browser/upgrade_detector_impl.h (working copy)
@@ -6,6 +6,7 @@
#define CHROME_BROWSER_UPGRADE_DETECTOR_IMPL_H_
#pragma once
+#include "base/memory/weak_ptr.h"
#include "base/timer.h"
#include "chrome/browser/upgrade_detector.h"
@@ -45,7 +46,7 @@
// We use this factory to create callback tasks for UpgradeDetected. We pass
// the task to the actual upgrade detection code, which is in
// DetectUpgradeTask.
- ScopedRunnableMethodFactory<UpgradeDetectorImpl> method_factory_;
+ base::WeakPtrFactory<UpgradeDetectorImpl> weak_factory_;
// True if this build is a dev or canary channel build.
bool is_unstable_channel_;

Powered by Google App Engine
This is Rietveld 408576698