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

Side by Side Diff: chrome/browser/ui/extensions/extension_enable_flow.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_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_ 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_
6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_ 6 #define CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 content::WebContents* parent_contents_; 99 content::WebContents* parent_contents_;
100 100
101 // Parent native window for ExtensionInstallPrompt. Note this is mutually 101 // Parent native window for ExtensionInstallPrompt. Note this is mutually
102 // exclusive with |parent_contents_| above. 102 // exclusive with |parent_contents_| above.
103 gfx::NativeWindow parent_window_; 103 gfx::NativeWindow parent_window_;
104 104
105 // Called to acquire a parent window for the prompt. This is used for clients 105 // Called to acquire a parent window for the prompt. This is used for clients
106 // who only want to create a window if it is required. 106 // who only want to create a window if it is required.
107 base::Callback<gfx::NativeWindow(void)> window_getter_; 107 base::Callback<gfx::NativeWindow(void)> window_getter_;
108 108
109 scoped_ptr<ExtensionInstallPrompt> prompt_; 109 std::unique_ptr<ExtensionInstallPrompt> prompt_;
110 content::NotificationRegistrar registrar_; 110 content::NotificationRegistrar registrar_;
111 111
112 // Listen to extension load notification. 112 // Listen to extension load notification.
113 ScopedObserver<extensions::ExtensionRegistry, 113 ScopedObserver<extensions::ExtensionRegistry,
114 extensions::ExtensionRegistryObserver> 114 extensions::ExtensionRegistryObserver>
115 extension_registry_observer_; 115 extension_registry_observer_;
116 116
117 base::WeakPtrFactory<ExtensionEnableFlow> weak_ptr_factory_; 117 base::WeakPtrFactory<ExtensionEnableFlow> weak_ptr_factory_;
118 118
119 DISALLOW_COPY_AND_ASSIGN(ExtensionEnableFlow); 119 DISALLOW_COPY_AND_ASSIGN(ExtensionEnableFlow);
120 }; 120 };
121 121
122 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_ 122 #endif // CHROME_BROWSER_UI_EXTENSIONS_EXTENSION_ENABLE_FLOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698