| OLD | NEW |
| 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_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 5 #ifndef CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 6 #define CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/callback_forward.h" | 10 #include "base/callback_forward.h" |
| (...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 226 GURL continue_url_; | 226 GURL continue_url_; |
| 227 | 227 |
| 228 // Callback executed when sync setup succeeds or fails. | 228 // Callback executed when sync setup succeeds or fails. |
| 229 Callback sync_setup_completed_callback_; | 229 Callback sync_setup_completed_callback_; |
| 230 | 230 |
| 231 // Policy credentials we keep while determining whether to create | 231 // Policy credentials we keep while determining whether to create |
| 232 // a new profile for an enterprise user or not. | 232 // a new profile for an enterprise user or not. |
| 233 std::string dm_token_; | 233 std::string dm_token_; |
| 234 std::string client_id_; | 234 std::string client_id_; |
| 235 | 235 |
| 236 // This only cares about the first AccountAddedToCookie event. Since |
| 237 // SigninTracker always expects an observer, this object will just disregard |
| 238 // following AccountAddedToCookie calls triggered by account reconciliation. |
| 239 bool first_account_added_to_cookie_; |
| 240 |
| 236 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; | 241 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; |
| 237 | 242 |
| 238 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); | 243 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); |
| 239 }; | 244 }; |
| 240 | 245 |
| 241 | 246 |
| 242 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ | 247 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ |
| OLD | NEW |