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

Side by Side Diff: chrome/browser/extensions/extension_context_menu_model.cc

Issue 1871713002: Convert //chrome/browser/extensions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix header Created 4 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/extensions/extension_context_menu_model.h" 5 #include "chrome/browser/extensions/extension_context_menu_model.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/strings/utf_string_conversions.h" 8 #include "base/strings/utf_string_conversions.h"
9 #include "chrome/app/chrome_command_ids.h" 9 #include "chrome/app/chrome_command_ids.h"
10 #include "chrome/browser/extensions/context_menu_matcher.h" 10 #include "chrome/browser/extensions/context_menu_matcher.h"
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 UNINSTALL_REASON_USER_INITIATED, 135 UNINSTALL_REASON_USER_INITIATED,
136 UNINSTALL_SOURCE_TOOLBAR_CONTEXT_MENU); 136 UNINSTALL_SOURCE_TOOLBAR_CONTEXT_MENU);
137 } 137 }
138 138
139 // ExtensionUninstallDialog::Delegate: 139 // ExtensionUninstallDialog::Delegate:
140 void OnExtensionUninstallDialogClosed(bool did_start_uninstall, 140 void OnExtensionUninstallDialogClosed(bool did_start_uninstall,
141 const base::string16& error) override { 141 const base::string16& error) override {
142 delete this; 142 delete this;
143 } 143 }
144 144
145 scoped_ptr<ExtensionUninstallDialog> uninstall_dialog_; 145 std::unique_ptr<ExtensionUninstallDialog> uninstall_dialog_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(UninstallDialogHelper); 147 DISALLOW_COPY_AND_ASSIGN(UninstallDialogHelper);
148 }; 148 };
149 149
150 } // namespace 150 } // namespace
151 151
152 ExtensionContextMenuModel::ExtensionContextMenuModel( 152 ExtensionContextMenuModel::ExtensionContextMenuModel(
153 const Extension* extension, 153 const Extension* extension,
154 Browser* browser, 154 Browser* browser,
155 ButtonVisibility button_visibility, 155 ButtonVisibility button_visibility,
(...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 if (runner && runner->WantsToRun(extension)) 457 if (runner && runner->WantsToRun(extension))
458 runner->RunBlockedActions(extension); 458 runner->RunBlockedActions(extension);
459 } 459 }
460 } 460 }
461 461
462 content::WebContents* ExtensionContextMenuModel::GetActiveWebContents() const { 462 content::WebContents* ExtensionContextMenuModel::GetActiveWebContents() const {
463 return browser_->tab_strip_model()->GetActiveWebContents(); 463 return browser_->tab_strip_model()->GetActiveWebContents();
464 } 464 }
465 465
466 } // namespace extensions 466 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698