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

Side by Side Diff: chrome/browser/supervised_user/legacy/supervised_user_registration_utility.cc

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti lity.h" 5 #include "chrome/browser/supervised_user/legacy/supervised_user_registration_uti lity.h"
6 6
7 #include <memory> 7 #include <memory>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/base64.h" 10 #include "base/base64.h"
(...skipping 14 matching lines...) Expand all
25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ update.h" 25 #include "chrome/browser/supervised_user/legacy/supervised_user_shared_settings_ update.h"
26 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h" 26 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service.h"
27 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac tory.h" 27 #include "chrome/browser/supervised_user/legacy/supervised_user_sync_service_fac tory.h"
28 #include "chrome/browser/supervised_user/supervised_user_constants.h" 28 #include "chrome/browser/supervised_user/supervised_user_constants.h"
29 #include "chrome/common/chrome_switches.h" 29 #include "chrome/common/chrome_switches.h"
30 #include "chrome/common/pref_names.h" 30 #include "chrome/common/pref_names.h"
31 #include "components/prefs/pref_service.h" 31 #include "components/prefs/pref_service.h"
32 #include "components/signin/core/browser/profile_oauth2_token_service.h" 32 #include "components/signin/core/browser/profile_oauth2_token_service.h"
33 #include "components/signin/core/browser/signin_client.h" 33 #include "components/signin/core/browser/signin_client.h"
34 #include "components/signin/core/browser/signin_manager.h" 34 #include "components/signin/core/browser/signin_manager.h"
35 #include "components/sync/base/get_session_name.h"
35 #include "content/public/browser/browser_thread.h" 36 #include "content/public/browser/browser_thread.h"
36 #include "google_apis/gaia/gaia_urls.h" 37 #include "google_apis/gaia/gaia_urls.h"
37 #include "google_apis/gaia/google_service_auth_error.h" 38 #include "google_apis/gaia/google_service_auth_error.h"
38 #include "sync/util/get_session_name.h"
39 39
40 using base::DictionaryValue; 40 using base::DictionaryValue;
41 41
42 namespace { 42 namespace {
43 43
44 SupervisedUserRegistrationUtility* g_instance_for_tests = NULL; 44 SupervisedUserRegistrationUtility* g_instance_for_tests = NULL;
45 45
46 // Actual implementation of SupervisedUserRegistrationUtility. 46 // Actual implementation of SupervisedUserRegistrationUtility.
47 class SupervisedUserRegistrationUtilityImpl 47 class SupervisedUserRegistrationUtilityImpl
48 : public SupervisedUserRegistrationUtility, 48 : public SupervisedUserRegistrationUtility,
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
407 pending_supervised_user_id_); 407 pending_supervised_user_id_);
408 } 408 }
409 } 409 }
410 410
411 if (run_callback) 411 if (run_callback)
412 callback_.Run(error, pending_supervised_user_token_); 412 callback_.Run(error, pending_supervised_user_token_);
413 callback_.Reset(); 413 callback_.Reset();
414 } 414 }
415 415
416 } // namespace 416 } // namespace
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698