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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/network_dropdown.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_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/timer/timer.h" 9 #include "base/timer/timer.h"
10 #include "chrome/browser/chromeos/status/network_menu.h" 10 #include "chrome/browser/chromeos/status/network_menu.h"
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 void Refresh(); 58 void Refresh();
59 59
60 private: 60 private:
61 void SetNetworkIconAndText(); 61 void SetNetworkIconAndText();
62 62
63 // Request a network scan and refreshes control state. Should be called 63 // Request a network scan and refreshes control state. Should be called
64 // by |network_scan_timer_| only. 64 // by |network_scan_timer_| only.
65 void RequestNetworkScan(); 65 void RequestNetworkScan();
66 66
67 // The Network menu. 67 // The Network menu.
68 scoped_ptr<NetworkMenuWebUI> network_menu_; 68 std::unique_ptr<NetworkMenuWebUI> network_menu_;
69 69
70 Actor* actor_; 70 Actor* actor_;
71 71
72 content::WebUI* web_ui_; 72 content::WebUI* web_ui_;
73 73
74 // Is the dropdown shown on one of the OOBE screens. 74 // Is the dropdown shown on one of the OOBE screens.
75 bool oobe_; 75 bool oobe_;
76 76
77 // Timer used to periodically force network scan. 77 // Timer used to periodically force network scan.
78 base::RepeatingTimer network_scan_timer_; 78 base::RepeatingTimer network_scan_timer_;
79 79
80 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown); 80 DISALLOW_COPY_AND_ASSIGN(NetworkDropdown);
81 }; 81 };
82 82
83 } // namespace chromeos 83 } // namespace chromeos
84 84
85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_ 85 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_NETWORK_DROPDOWN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698