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

Side by Side Diff: chrome/browser/profiles/profile_io_data.cc

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/signin/signin_manager_base.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #include "chrome/browser/profiles/profile_io_data.h" 5 #include "chrome/browser/profiles/profile_io_data.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 #include "chrome/browser/net/proxy_service_factory.h" 43 #include "chrome/browser/net/proxy_service_factory.h"
44 #include "chrome/browser/profiles/profile.h" 44 #include "chrome/browser/profiles/profile.h"
45 #include "chrome/browser/profiles/profile_manager.h" 45 #include "chrome/browser/profiles/profile_manager.h"
46 #include "chrome/browser/signin/signin_names_io_thread.h" 46 #include "chrome/browser/signin/signin_names_io_thread.h"
47 #include "chrome/common/chrome_paths.h" 47 #include "chrome/common/chrome_paths.h"
48 #include "chrome/common/chrome_switches.h" 48 #include "chrome/common/chrome_switches.h"
49 #include "chrome/common/net/url_fixer_upper.h" 49 #include "chrome/common/net/url_fixer_upper.h"
50 #include "chrome/common/pref_names.h" 50 #include "chrome/common/pref_names.h"
51 #include "chrome/common/url_constants.h" 51 #include "chrome/common/url_constants.h"
52 #include "components/startup_metric_utils/startup_metric_utils.h" 52 #include "components/startup_metric_utils/startup_metric_utils.h"
53 #include "components/sync_driver/pref_names.h"
53 #include "content/public/browser/browser_thread.h" 54 #include "content/public/browser/browser_thread.h"
54 #include "content/public/browser/host_zoom_map.h" 55 #include "content/public/browser/host_zoom_map.h"
55 #include "content/public/browser/notification_service.h" 56 #include "content/public/browser/notification_service.h"
56 #include "content/public/browser/resource_context.h" 57 #include "content/public/browser/resource_context.h"
57 #include "extensions/browser/extension_system.h" 58 #include "extensions/browser/extension_system.h"
58 #include "extensions/browser/info_map.h" 59 #include "extensions/browser/info_map.h"
59 #include "extensions/common/constants.h" 60 #include "extensions/common/constants.h"
60 #include "net/base/keygen_handler.h" 61 #include "net/base/keygen_handler.h"
61 #include "net/cookies/canonical_cookie.h" 62 #include "net/cookies/canonical_cookie.h"
62 #include "net/http/http_transaction_factory.h" 63 #include "net/http/http_transaction_factory.h"
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
401 google_services_username_pattern_.MoveToThread(io_message_loop_proxy); 402 google_services_username_pattern_.MoveToThread(io_message_loop_proxy);
402 403
403 reverse_autologin_enabled_.Init( 404 reverse_autologin_enabled_.Init(
404 prefs::kReverseAutologinEnabled, pref_service); 405 prefs::kReverseAutologinEnabled, pref_service);
405 reverse_autologin_enabled_.MoveToThread(io_message_loop_proxy); 406 reverse_autologin_enabled_.MoveToThread(io_message_loop_proxy);
406 407
407 one_click_signin_rejected_email_list_.Init( 408 one_click_signin_rejected_email_list_.Init(
408 prefs::kReverseAutologinRejectedEmailList, pref_service); 409 prefs::kReverseAutologinRejectedEmailList, pref_service);
409 one_click_signin_rejected_email_list_.MoveToThread(io_message_loop_proxy); 410 one_click_signin_rejected_email_list_.MoveToThread(io_message_loop_proxy);
410 411
411 sync_disabled_.Init(prefs::kSyncManaged, pref_service); 412 sync_disabled_.Init(sync_driver::prefs::kSyncManaged, pref_service);
412 sync_disabled_.MoveToThread(io_message_loop_proxy); 413 sync_disabled_.MoveToThread(io_message_loop_proxy);
413 414
414 signin_allowed_.Init(prefs::kSigninAllowed, pref_service); 415 signin_allowed_.Init(prefs::kSigninAllowed, pref_service);
415 signin_allowed_.MoveToThread(io_message_loop_proxy); 416 signin_allowed_.MoveToThread(io_message_loop_proxy);
416 } 417 }
417 418
418 quick_check_enabled_.Init(prefs::kQuickCheckEnabled, 419 quick_check_enabled_.Init(prefs::kQuickCheckEnabled,
419 local_state_pref_service); 420 local_state_pref_service);
420 quick_check_enabled_.MoveToThread(io_message_loop_proxy); 421 quick_check_enabled_.MoveToThread(io_message_loop_proxy);
421 422
(...skipping 740 matching lines...) Expand 10 before | Expand all | Expand 10 after
1162 void ProfileIOData::SetCookieSettingsForTesting( 1163 void ProfileIOData::SetCookieSettingsForTesting(
1163 CookieSettings* cookie_settings) { 1164 CookieSettings* cookie_settings) {
1164 DCHECK(!cookie_settings_.get()); 1165 DCHECK(!cookie_settings_.get());
1165 cookie_settings_ = cookie_settings; 1166 cookie_settings_ = cookie_settings;
1166 } 1167 }
1167 1168
1168 void ProfileIOData::set_signin_names_for_testing( 1169 void ProfileIOData::set_signin_names_for_testing(
1169 SigninNamesOnIOThread* signin_names) { 1170 SigninNamesOnIOThread* signin_names) {
1170 signin_names_.reset(signin_names); 1171 signin_names_.reset(signin_names);
1171 } 1172 }
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile.cc ('k') | chrome/browser/signin/signin_manager_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698