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

Side by Side Diff: chrome/browser/sync/glue/data_type_manager_impl.cc

Issue 7977018: Enable sync for the settings from the Extension Settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix race condition in ExtensionSettingsUIWrapper::Core Created 9 years, 3 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/sync/glue/data_type_manager_impl.h" 5 #include "chrome/browser/sync/glue/data_type_manager_impl.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 13 matching lines...) Expand all
24 namespace browser_sync { 24 namespace browser_sync {
25 25
26 namespace { 26 namespace {
27 27
28 static const syncable::ModelType kStartOrder[] = { 28 static const syncable::ModelType kStartOrder[] = {
29 syncable::NIGORI, // Listed for completeness. 29 syncable::NIGORI, // Listed for completeness.
30 syncable::BOOKMARKS, 30 syncable::BOOKMARKS,
31 syncable::PREFERENCES, 31 syncable::PREFERENCES,
32 syncable::AUTOFILL, 32 syncable::AUTOFILL,
33 syncable::AUTOFILL_PROFILE, 33 syncable::AUTOFILL_PROFILE,
34 syncable::EXTENSION_SETTINGS,
34 syncable::EXTENSIONS, 35 syncable::EXTENSIONS,
35 syncable::APPS, 36 syncable::APPS,
36 syncable::THEMES, 37 syncable::THEMES,
37 syncable::TYPED_URLS, 38 syncable::TYPED_URLS,
38 syncable::PASSWORDS, 39 syncable::PASSWORDS,
39 syncable::SEARCH_ENGINES, 40 syncable::SEARCH_ENGINES,
40 syncable::SESSIONS, 41 syncable::SESSIONS,
41 }; 42 };
42 43
43 COMPILE_ASSERT(arraysize(kStartOrder) == 44 COMPILE_ASSERT(arraysize(kStartOrder) ==
(...skipping 455 matching lines...) Expand 10 before | Expand all | Expand 10 after
499 Source<DataTypeManager>(this), 500 Source<DataTypeManager>(this),
500 NotificationService::NoDetails()); 501 NotificationService::NoDetails());
501 } 502 }
502 503
503 void DataTypeManagerImpl::AddToConfigureTime() { 504 void DataTypeManagerImpl::AddToConfigureTime() {
504 DCHECK(!last_restart_time_.is_null()); 505 DCHECK(!last_restart_time_.is_null());
505 configure_time_delta_ += (base::Time::Now() - last_restart_time_); 506 configure_time_delta_ += (base::Time::Now() - last_restart_time_);
506 } 507 }
507 508
508 } // namespace browser_sync 509 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/profiles/profile_impl.cc ('k') | chrome/browser/sync/glue/extension_setting_data_type_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698