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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_uninstall_dialog_view.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 (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_uninstall_dialog.h" 5 #include <memory>
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h"
10 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
11 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "chrome/browser/extensions/extension_uninstall_dialog.h"
12 #include "chrome/browser/ui/app_list/app_list_service.h" 12 #include "chrome/browser/ui/app_list/app_list_service.h"
13 #include "chrome/browser/ui/native_window_tracker.h" 13 #include "chrome/browser/ui/native_window_tracker.h"
14 #include "chrome/grit/generated_resources.h" 14 #include "chrome/grit/generated_resources.h"
15 #include "components/constrained_window/constrained_window_views.h" 15 #include "components/constrained_window/constrained_window_views.h"
16 #include "extensions/common/extension.h" 16 #include "extensions/common/extension.h"
17 #include "grit/components_strings.h" 17 #include "grit/components_strings.h"
18 #include "ui/base/l10n/l10n_util.h" 18 #include "ui/base/l10n/l10n_util.h"
19 #include "ui/compositor/compositor.h" 19 #include "ui/compositor/compositor.h"
20 #include "ui/compositor/layer.h" 20 #include "ui/compositor/layer.h"
21 #include "ui/views/controls/button/checkbox.h" 21 #include "ui/views/controls/button/checkbox.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 53
54 private: 54 private:
55 void Show() override; 55 void Show() override;
56 56
57 ExtensionUninstallDialogDelegateView* view_; 57 ExtensionUninstallDialogDelegateView* view_;
58 58
59 // The dialog's parent window. 59 // The dialog's parent window.
60 gfx::NativeWindow parent_; 60 gfx::NativeWindow parent_;
61 61
62 // Tracks whether |parent_| got destroyed. 62 // Tracks whether |parent_| got destroyed.
63 scoped_ptr<NativeWindowTracker> parent_window_tracker_; 63 std::unique_ptr<NativeWindowTracker> parent_window_tracker_;
64 64
65 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallDialogViews); 65 DISALLOW_COPY_AND_ASSIGN(ExtensionUninstallDialogViews);
66 }; 66 };
67 67
68 // The dialog's view, owned by the views framework. 68 // The dialog's view, owned by the views framework.
69 class ExtensionUninstallDialogDelegateView : public views::DialogDelegateView { 69 class ExtensionUninstallDialogDelegateView : public views::DialogDelegateView {
70 public: 70 public:
71 ExtensionUninstallDialogDelegateView( 71 ExtensionUninstallDialogDelegateView(
72 ExtensionUninstallDialogViews* dialog_view, 72 ExtensionUninstallDialogViews* dialog_view,
73 bool triggered_by_extension, 73 bool triggered_by_extension,
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 } // namespace 270 } // namespace
271 271
272 // static 272 // static
273 extensions::ExtensionUninstallDialog* 273 extensions::ExtensionUninstallDialog*
274 extensions::ExtensionUninstallDialog::Create(Profile* profile, 274 extensions::ExtensionUninstallDialog::Create(Profile* profile,
275 gfx::NativeWindow parent, 275 gfx::NativeWindow parent,
276 Delegate* delegate) { 276 Delegate* delegate) {
277 return new ExtensionUninstallDialogViews(profile, parent, delegate); 277 return new ExtensionUninstallDialogViews(profile, parent, delegate);
278 } 278 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698