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

Side by Side Diff: components/sync_driver/model_association_manager.cc

Issue 316863002: Rename "managed (mode|user)" to "supervised user" (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 6 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/test/base/testing_profile_manager.cc ('k') | components/sync_driver/pref_names.h » ('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 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 "components/sync_driver/model_association_manager.h" 5 #include "components/sync_driver/model_association_manager.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/debug/trace_event.h" 10 #include "base/debug/trace_event.h"
(...skipping 21 matching lines...) Expand all
32 syncer::AUTOFILL_PROFILE, 32 syncer::AUTOFILL_PROFILE,
33 syncer::EXTENSION_SETTINGS, 33 syncer::EXTENSION_SETTINGS,
34 syncer::APP_SETTINGS, 34 syncer::APP_SETTINGS,
35 syncer::TYPED_URLS, 35 syncer::TYPED_URLS,
36 syncer::HISTORY_DELETE_DIRECTIVES, 36 syncer::HISTORY_DELETE_DIRECTIVES,
37 syncer::SYNCED_NOTIFICATIONS, 37 syncer::SYNCED_NOTIFICATIONS,
38 syncer::SYNCED_NOTIFICATION_APP_INFO, 38 syncer::SYNCED_NOTIFICATION_APP_INFO,
39 39
40 // UI thread data types. 40 // UI thread data types.
41 syncer::BOOKMARKS, 41 syncer::BOOKMARKS,
42 syncer::MANAGED_USERS, // Syncing managed users on initial login might 42 syncer::SUPERVISED_USERS, // Syncing supervised users on initial login
43 // block creating a new managed user, so we 43 // might block creating a new supervised user,
44 // want to do it early. 44 // so we want to do it early.
45 syncer::PREFERENCES, 45 syncer::PREFERENCES,
46 syncer::PRIORITY_PREFERENCES, 46 syncer::PRIORITY_PREFERENCES,
47 syncer::EXTENSIONS, 47 syncer::EXTENSIONS,
48 syncer::APPS, 48 syncer::APPS,
49 syncer::APP_LIST, 49 syncer::APP_LIST,
50 syncer::THEMES, 50 syncer::THEMES,
51 syncer::SEARCH_ENGINES, 51 syncer::SEARCH_ENGINES,
52 syncer::SESSIONS, 52 syncer::SESSIONS,
53 syncer::APP_NOTIFICATIONS, 53 syncer::APP_NOTIFICATIONS,
54 syncer::DICTIONARY, 54 syncer::DICTIONARY,
55 syncer::FAVICON_IMAGES, 55 syncer::FAVICON_IMAGES,
56 syncer::FAVICON_TRACKING, 56 syncer::FAVICON_TRACKING,
57 syncer::MANAGED_USER_SETTINGS, 57 syncer::SUPERVISED_USER_SETTINGS,
58 syncer::MANAGED_USER_SHARED_SETTINGS, 58 syncer::SUPERVISED_USER_SHARED_SETTINGS,
59 syncer::ARTICLES, 59 syncer::ARTICLES,
60 }; 60 };
61 61
62 COMPILE_ASSERT(arraysize(kStartOrder) == 62 COMPILE_ASSERT(arraysize(kStartOrder) ==
63 syncer::MODEL_TYPE_COUNT - syncer::FIRST_REAL_MODEL_TYPE, 63 syncer::MODEL_TYPE_COUNT - syncer::FIRST_REAL_MODEL_TYPE,
64 kStartOrder_IncorrectSize); 64 kStartOrder_IncorrectSize);
65 65
66 // The amount of time we wait for association to finish. If some types haven't 66 // The amount of time we wait for association to finish. If some types haven't
67 // finished association by the time, configuration result will be 67 // finished association by the time, configuration result will be
68 // PARTIAL_SUCCESS and DataTypeManager is notified of the unfinished types. 68 // PARTIAL_SUCCESS and DataTypeManager is notified of the unfinished types.
(...skipping 386 matching lines...) Expand 10 before | Expand all | Expand 10 after
455 455
456 delegate_->OnModelAssociationDone(result); 456 delegate_->OnModelAssociationDone(result);
457 } 457 }
458 458
459 base::OneShotTimer<ModelAssociationManager>* 459 base::OneShotTimer<ModelAssociationManager>*
460 ModelAssociationManager::GetTimerForTesting() { 460 ModelAssociationManager::GetTimerForTesting() {
461 return &timer_; 461 return &timer_;
462 } 462 }
463 463
464 } // namespace browser_sync 464 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/test/base/testing_profile_manager.cc ('k') | components/sync_driver/pref_names.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698