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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_dialog.h

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 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_
7 7
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Use Show() to create instances. 90 // Use Show() to create instances.
91 ExtensionDialog(extensions::ExtensionViewHost* host, 91 ExtensionDialog(extensions::ExtensionViewHost* host,
92 ExtensionDialogObserver* observer); 92 ExtensionDialogObserver* observer);
93 93
94 void InitWindow(gfx::NativeWindow parent_window, int width, int height); 94 void InitWindow(gfx::NativeWindow parent_window, int width, int height);
95 95
96 // Window Title 96 // Window Title
97 base::string16 window_title_; 97 base::string16 window_title_;
98 98
99 // The contained host for the view. 99 // The contained host for the view.
100 scoped_ptr<extensions::ExtensionViewHost> host_; 100 std::unique_ptr<extensions::ExtensionViewHost> host_;
101 101
102 content::NotificationRegistrar registrar_; 102 content::NotificationRegistrar registrar_;
103 103
104 // The observer of this popup. 104 // The observer of this popup.
105 ExtensionDialogObserver* observer_; 105 ExtensionDialogObserver* observer_;
106 106
107 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog); 107 DISALLOW_COPY_AND_ASSIGN(ExtensionDialog);
108 }; 108 };
109 109
110 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_ 110 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_DIALOG_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698