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

Unified Diff: chrome/browser/ui/views/external_protocol_dialog.cc

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/views/external_protocol_dialog.h ('k') | chrome/browser/ui/views/find_bar_view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/external_protocol_dialog.cc
diff --git a/chrome/browser/ui/views/external_protocol_dialog.cc b/chrome/browser/ui/views/external_protocol_dialog.cc
index 5a7d0cbb5b4b86f189a5c259ae3014bc711a7968..9ae80fc6b9112cad5b31f08ab7e9e3a2d936da15 100644
--- a/chrome/browser/ui/views/external_protocol_dialog.cc
+++ b/chrome/browser/ui/views/external_protocol_dialog.cc
@@ -35,9 +35,8 @@ const int kMessageWidth = 400;
void ExternalProtocolHandler::RunExternalProtocolDialog(
const GURL& url, int render_process_host_id, int routing_id,
ui::PageTransition page_transition, bool has_user_gesture) {
- scoped_ptr<ExternalProtocolDialogDelegate> delegate(
- new ExternalProtocolDialogDelegate(url,
- render_process_host_id,
+ std::unique_ptr<ExternalProtocolDialogDelegate> delegate(
+ new ExternalProtocolDialogDelegate(url, render_process_host_id,
routing_id));
if (delegate->program_name().empty()) {
// ShellExecute won't do anything. Don't bother warning the user.
@@ -124,7 +123,7 @@ ui::ModalType ExternalProtocolDialog::GetModalType() const {
// ExternalProtocolDialog, private:
ExternalProtocolDialog::ExternalProtocolDialog(
- scoped_ptr<const ProtocolDialogDelegate> delegate,
+ std::unique_ptr<const ProtocolDialogDelegate> delegate,
int render_process_host_id,
int routing_id)
: delegate_(std::move(delegate)),
« no previous file with comments | « chrome/browser/ui/views/external_protocol_dialog.h ('k') | chrome/browser/ui/views/find_bar_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698