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

Side by Side Diff: chrome/browser/ui/sync/one_click_signin_sync_starter.h

Issue 2689773002: [Sync] Replace typedef with using. (Closed)
Patch Set: [Sync] Replace typedef with using. Created 3 years, 10 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_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 <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 // Display a confirmation after signing in. 90 // Display a confirmation after signing in.
91 CONFIRM_AFTER_SIGNIN 91 CONFIRM_AFTER_SIGNIN
92 }; 92 };
93 93
94 // Result of the sync setup. 94 // Result of the sync setup.
95 enum SyncSetupResult { 95 enum SyncSetupResult {
96 SYNC_SETUP_SUCCESS, 96 SYNC_SETUP_SUCCESS,
97 SYNC_SETUP_FAILURE 97 SYNC_SETUP_FAILURE
98 }; 98 };
99 99
100 typedef base::Callback<void(SyncSetupResult)> Callback; 100 using Callback = base::Callback<void(SyncSetupResult)>;
101 101
102 // |profile| must not be NULL, however |browser| can be. When using the 102 // |profile| must not be NULL, however |browser| can be. When using the
103 // OneClickSigninSyncStarter from a browser, provide both. 103 // OneClickSigninSyncStarter from a browser, provide both.
104 // If |display_confirmation| is true, the user will be prompted to confirm the 104 // If |display_confirmation| is true, the user will be prompted to confirm the
105 // signin before signin completes. 105 // signin before signin completes.
106 // |web_contents| is used to show the sync UI if it's showing a blank page 106 // |web_contents| is used to show the sync UI if it's showing a blank page
107 // and not about to be closed. It can be NULL. 107 // and not about to be closed. It can be NULL.
108 // If |web_contents| is non-NULL and the |continue_url| is non-empty, the 108 // If |web_contents| is non-NULL and the |continue_url| is non-empty, the
109 // |web_contents| will be navigated to the |continue_url| once both signin and 109 // |web_contents| will be navigated to the |continue_url| once both signin and
110 // Sync setup are complete. 110 // Sync setup are complete.
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 // Prevents Sync from running until configuration is complete. 260 // Prevents Sync from running until configuration is complete.
261 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_; 261 std::unique_ptr<syncer::SyncSetupInProgressHandle> sync_blocker_;
262 262
263 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_; 263 base::WeakPtrFactory<OneClickSigninSyncStarter> weak_pointer_factory_;
264 264
265 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter); 265 DISALLOW_COPY_AND_ASSIGN(OneClickSigninSyncStarter);
266 }; 266 };
267 267
268 268
269 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_ 269 #endif // CHROME_BROWSER_UI_SYNC_ONE_CLICK_SIGNIN_SYNC_STARTER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/sync/one_click_signin_sync_observer_unittest.cc ('k') | components/browser_sync/profile_sync_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698