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

Unified Diff: chrome/browser/ui/browser_instant_controller.cc

Issue 2847173004: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: Created 3 years, 8 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/ui/browser_instant_controller.cc
diff --git a/chrome/browser/ui/browser_instant_controller.cc b/chrome/browser/ui/browser_instant_controller.cc
index 6106c8eda44948e286b58dc1e4b773dbd52446ff..940805bcbde1f9aac724bd31b5a902e2a5eae9c1 100644
--- a/chrome/browser/ui/browser_instant_controller.cc
+++ b/chrome/browser/ui/browser_instant_controller.cc
@@ -39,6 +39,8 @@ namespace {
// makes sure to only execute the reload if the WebContents still exists.
class TabReloader : public content::WebContentsUserData<TabReloader> {
public:
+ ~TabReloader() override {}
+
static void Reload(content::WebContents* web_contents) {
TabReloader::CreateForWebContents(web_contents);
}
@@ -53,7 +55,6 @@ class TabReloader : public content::WebContentsUserData<TabReloader> {
base::BindOnce(&TabReloader::ReloadImpl,
weak_ptr_factory_.GetWeakPtr()));
}
- ~TabReloader() override {}
void ReloadImpl() {
web_contents_->GetController().Reload(content::ReloadType::NORMAL, false);

Powered by Google App Engine
This is Rietveld 408576698