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

Side by Side Diff: chrome/browser/ui/webui/options/supervised_user_import_handler.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_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_list.h" 10 #include "base/callback_list.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 void ClearSupervisedUsersAndShowError(); 90 void ClearSupervisedUsersAndShowError();
91 91
92 bool IsAccountConnected() const; 92 bool IsAccountConnected() const;
93 bool HasAuthError() const; 93 bool HasAuthError() const;
94 94
95 // Called when a supervised user shared setting is changed. If the avatar was 95 // Called when a supervised user shared setting is changed. If the avatar was
96 // changed, FetchSupervisedUsers() is called. 96 // changed, FetchSupervisedUsers() is called.
97 void OnSharedSettingChanged(const std::string& supervised_user_id, 97 void OnSharedSettingChanged(const std::string& supervised_user_id,
98 const std::string& key); 98 const std::string& key);
99 99
100 scoped_ptr<CallbackList::Subscription> subscription_; 100 std::unique_ptr<CallbackList::Subscription> subscription_;
101 101
102 ScopedObserver<ProfileAttributesStorage, SupervisedUserImportHandler> 102 ScopedObserver<ProfileAttributesStorage, SupervisedUserImportHandler>
103 profile_observer_; 103 profile_observer_;
104 ScopedObserver<SigninErrorController, SupervisedUserImportHandler> 104 ScopedObserver<SigninErrorController, SupervisedUserImportHandler>
105 signin_error_observer_; 105 signin_error_observer_;
106 ScopedObserver<SupervisedUserSyncService, SupervisedUserImportHandler> 106 ScopedObserver<SupervisedUserSyncService, SupervisedUserImportHandler>
107 supervised_user_sync_service_observer_; 107 supervised_user_sync_service_observer_;
108 108
109 bool removed_profile_is_supervised_; 109 bool removed_profile_is_supervised_;
110 110
111 base::WeakPtrFactory<SupervisedUserImportHandler> weak_ptr_factory_; 111 base::WeakPtrFactory<SupervisedUserImportHandler> weak_ptr_factory_;
112 112
113 DISALLOW_COPY_AND_ASSIGN(SupervisedUserImportHandler); 113 DISALLOW_COPY_AND_ASSIGN(SupervisedUserImportHandler);
114 }; 114 };
115 115
116 } // namespace options 116 } // namespace options
117 117
118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_ 118 #endif // CHROME_BROWSER_UI_WEBUI_OPTIONS_SUPERVISED_USER_IMPORT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698