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

Side by Side Diff: chrome/browser/ui/views/download/download_danger_prompt_views.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 unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/download/download_danger_prompt.h" 5 #include "chrome/browser/download/download_danger_prompt.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "chrome/browser/download/download_stats.h" 8 #include "chrome/browser/download/download_stats.h"
9 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s ampling.h" 9 #include "chrome/browser/extensions/api/experience_sampling_private/experience_s ampling.h"
10 #include "chrome/grit/chromium_strings.h" 10 #include "chrome/grit/chromium_strings.h"
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 base::string16 GetCancelButtonTitle() const; 67 base::string16 GetCancelButtonTitle() const;
68 // The message lead is separated from the main text and is bolded. 68 // The message lead is separated from the main text and is bolded.
69 base::string16 GetMessageLead() const; 69 base::string16 GetMessageLead() const;
70 base::string16 GetMessageBody() const; 70 base::string16 GetMessageBody() const;
71 void RunDone(Action action); 71 void RunDone(Action action);
72 72
73 content::DownloadItem* download_; 73 content::DownloadItem* download_;
74 bool show_context_; 74 bool show_context_;
75 OnDone done_; 75 OnDone done_;
76 76
77 scoped_ptr<ExperienceSamplingEvent> sampling_event_; 77 std::unique_ptr<ExperienceSamplingEvent> sampling_event_;
78 78
79 views::View* contents_view_; 79 views::View* contents_view_;
80 }; 80 };
81 81
82 DownloadDangerPromptViews::DownloadDangerPromptViews( 82 DownloadDangerPromptViews::DownloadDangerPromptViews(
83 content::DownloadItem* item, 83 content::DownloadItem* item,
84 bool show_context, 84 bool show_context,
85 const OnDone& done) 85 const OnDone& done)
86 : download_(item), 86 : download_(item),
87 show_context_(show_context), 87 show_context_(show_context),
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 content::DownloadItem* item, 349 content::DownloadItem* item,
350 content::WebContents* web_contents, 350 content::WebContents* web_contents,
351 bool show_context, 351 bool show_context,
352 const OnDone& done) { 352 const OnDone& done) {
353 DownloadDangerPromptViews* download_danger_prompt = 353 DownloadDangerPromptViews* download_danger_prompt =
354 new DownloadDangerPromptViews(item, show_context, done); 354 new DownloadDangerPromptViews(item, show_context, done);
355 constrained_window::ShowWebModalDialogViews(download_danger_prompt, 355 constrained_window::ShowWebModalDialogViews(download_danger_prompt,
356 web_contents); 356 web_contents);
357 return download_danger_prompt; 357 return download_danger_prompt;
358 } 358 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/desktop_media_picker_views_unittest.cc ('k') | chrome/browser/ui/views/download/download_item_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698