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

Side by Side Diff: chrome/browser/ui/views/extensions/device_permissions_dialog_view.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_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_
7 7
8 #include "extensions/browser/api/device_permissions_prompt.h" 8 #include "extensions/browser/api/device_permissions_prompt.h"
9 #include "ui/views/window/dialog_delegate.h" 9 #include "ui/views/window/dialog_delegate.h"
10 10
(...skipping 17 matching lines...) Expand all
28 base::string16 GetWindowTitle() const override; 28 base::string16 GetWindowTitle() const override;
29 void DeleteDelegate() override; 29 void DeleteDelegate() override;
30 bool Accept() override; 30 bool Accept() override;
31 gfx::Size GetPreferredSize() const override; 31 gfx::Size GetPreferredSize() const override;
32 32
33 private: 33 private:
34 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_; 34 scoped_refptr<extensions::DevicePermissionsPrompt::Prompt> prompt_;
35 35
36 // Displays the list of devices. 36 // Displays the list of devices.
37 views::TableView* table_view_; 37 views::TableView* table_view_;
38 scoped_ptr<DevicePermissionsTableModel> table_model_; 38 std::unique_ptr<DevicePermissionsTableModel> table_model_;
39 }; 39 };
40 40
41 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_ 41 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_DEVICE_PERMISSIONS_DIALOG_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698