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

Side by Side Diff: chrome/browser/chromeos/login/supervised/supervised_user_login_flow.h

Issue 1870793002: Convert //chrome/browser/chromeos 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_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 27 matching lines...) Expand all
38 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override; 38 void OnAuthenticationFailure(ExtendedAuthenticator::AuthState state) override;
39 39
40 private: 40 private:
41 void Launch(); 41 void Launch();
42 void Finish(); 42 void Finish();
43 43
44 void OnSyncSetupDataLoaded(const std::string& token); 44 void OnSyncSetupDataLoaded(const std::string& token);
45 void ConfigureSync(const std::string& token); 45 void ConfigureSync(const std::string& token);
46 void OnPasswordChangeDataLoaded(const base::DictionaryValue* password_data); 46 void OnPasswordChangeDataLoaded(const base::DictionaryValue* password_data);
47 void OnPasswordChangeDataLoadFailed(); 47 void OnPasswordChangeDataLoadFailed();
48 void OnNewKeyAdded(scoped_ptr<base::DictionaryValue> password_data); 48 void OnNewKeyAdded(std::unique_ptr<base::DictionaryValue> password_data);
49 void OnOldKeyRemoved(); 49 void OnOldKeyRemoved();
50 void OnPasswordUpdated(scoped_ptr<base::DictionaryValue> password_data); 50 void OnPasswordUpdated(std::unique_ptr<base::DictionaryValue> password_data);
51 51
52 scoped_refptr<ExtendedAuthenticator> authenticator_; 52 scoped_refptr<ExtendedAuthenticator> authenticator_;
53 53
54 bool data_loaded_ = false; 54 bool data_loaded_ = false;
55 UserContext context_; 55 UserContext context_;
56 Profile* profile_ = nullptr; 56 Profile* profile_ = nullptr;
57 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_; 57 base::WeakPtrFactory<SupervisedUserLoginFlow> weak_factory_;
58 58
59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow); 59 DISALLOW_COPY_AND_ASSIGN(SupervisedUserLoginFlow);
60 }; 60 };
61 61
62 } // namespace chromeos 62 } // namespace chromeos
63 63
64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _ 64 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_SUPERVISED_SUPERVISED_USER_LOGIN_FLOW_H _
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698