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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/device_permissions_dialog_controller.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H _ 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H _
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H _ 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLER_H _
7 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #include "base/mac/scoped_nsobject.h" 10 #include "base/mac/scoped_nsobject.h"
(...skipping 21 matching lines...) Expand all
32 32
33 // extensions::DevicePermissionsPrompt::Prompt::Observer implementation. 33 // extensions::DevicePermissionsPrompt::Prompt::Observer implementation.
34 void OnDevicesChanged() override; 34 void OnDevicesChanged() override;
35 35
36 // ConstrainedWindowMacDelegate implementation. 36 // ConstrainedWindowMacDelegate implementation.
37 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override; 37 void OnConstrainedWindowClosed(ConstrainedWindowMac* window) override;
38 38
39 private: 39 private:
40 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; 40 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
41 base::scoped_nsobject<DevicePermissionsViewController> view_controller_; 41 base::scoped_nsobject<DevicePermissionsViewController> view_controller_;
42 scoped_ptr<ConstrainedWindowMac> constrained_window_; 42 std::unique_ptr<ConstrainedWindowMac> constrained_window_;
43 }; 43 };
44 44
45 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLE R_H_ 45 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_CONTROLE R_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698