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

Side by Side Diff: chrome/browser/sync/profile_sync_service.h

Issue 12549017: Adjust the profile sync service to properly set per user or per machine flags. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed stupid copy/paste error. Created 7 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 | « no previous file | chrome/browser/sync/profile_sync_service.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 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 5 #ifndef CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 6 #define CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <string> 9 #include <string>
10 #include <utility> 10 #include <utility>
(...skipping 772 matching lines...) Expand 10 before | Expand all | Expand 10 after
783 // |invalidator_registrar_| is not NULL). 783 // |invalidator_registrar_| is not NULL).
784 void UpdateInvalidatorRegistrarState(); 784 void UpdateInvalidatorRegistrarState();
785 785
786 // Destroys / recreates an instance of ProfileSyncService. Used exclusively by 786 // Destroys / recreates an instance of ProfileSyncService. Used exclusively by
787 // the sync integration tests so they can restart sync from scratch without 787 // the sync integration tests so they can restart sync from scratch without
788 // tearing down and recreating the browser process. Needed because simply 788 // tearing down and recreating the browser process. Needed because simply
789 // calling Shutdown() and Initialize() will not recreate other internal 789 // calling Shutdown() and Initialize() will not recreate other internal
790 // objects like SyncBackendHost, SyncManager, etc. 790 // objects like SyncBackendHost, SyncManager, etc.
791 void ResetForTest(); 791 void ResetForTest();
792 792
793 // Sets a flag for enabling an experiment.
794 void SetExperimentFlag(const std::string& experiment);
795
793 // Factory used to create various dependent objects. 796 // Factory used to create various dependent objects.
794 scoped_ptr<ProfileSyncComponentsFactory> factory_; 797 scoped_ptr<ProfileSyncComponentsFactory> factory_;
795 798
796 // The profile whose data we are synchronizing. 799 // The profile whose data we are synchronizing.
797 Profile* profile_; 800 Profile* profile_;
798 801
799 // The class that handles getting, setting, and persisting sync 802 // The class that handles getting, setting, and persisting sync
800 // preferences. 803 // preferences.
801 browser_sync::SyncPrefs sync_prefs_; 804 browser_sync::SyncPrefs sync_prefs_;
802 805
(...skipping 125 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_; 931 syncer::WeakHandle<syncer::DataTypeDebugInfoListener> debug_info_listener_;
929 932
930 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService); 933 DISALLOW_COPY_AND_ASSIGN(ProfileSyncService);
931 }; 934 };
932 935
933 bool ShouldShowActionOnUI( 936 bool ShouldShowActionOnUI(
934 const syncer::SyncProtocolError& error); 937 const syncer::SyncProtocolError& error);
935 938
936 939
937 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_ 940 #endif // CHROME_BROWSER_SYNC_PROFILE_SYNC_SERVICE_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698