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

Side by Side Diff: components/browser_sync/profile_sync_service.cc

Issue 2241583003: Creating protobuf for reading list sync (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 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
« no previous file with comments | « no previous file | components/sync/base/data_type_histogram.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 (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 "components/browser_sync/profile_sync_service.h" 5 #include "components/browser_sync/profile_sync_service.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <cstddef> 9 #include <cstddef>
10 #include <map> 10 #include <map>
(...skipping 1577 matching lines...) Expand 10 before | Expand all | Expand 10 after
1588 sync_driver::user_selectable_type::PREFERENCES, 1588 sync_driver::user_selectable_type::PREFERENCES,
1589 sync_driver::user_selectable_type::PASSWORDS, 1589 sync_driver::user_selectable_type::PASSWORDS,
1590 sync_driver::user_selectable_type::AUTOFILL, 1590 sync_driver::user_selectable_type::AUTOFILL,
1591 sync_driver::user_selectable_type::THEMES, 1591 sync_driver::user_selectable_type::THEMES,
1592 sync_driver::user_selectable_type::TYPED_URLS, 1592 sync_driver::user_selectable_type::TYPED_URLS,
1593 sync_driver::user_selectable_type::EXTENSIONS, 1593 sync_driver::user_selectable_type::EXTENSIONS,
1594 sync_driver::user_selectable_type::APPS, 1594 sync_driver::user_selectable_type::APPS,
1595 sync_driver::user_selectable_type::PROXY_TABS, 1595 sync_driver::user_selectable_type::PROXY_TABS,
1596 }; 1596 };
1597 1597
1598 static_assert(38 == syncer::MODEL_TYPE_COUNT, 1598 static_assert(39 == syncer::MODEL_TYPE_COUNT,
1599 "custom config histogram must be updated"); 1599 "custom config histogram must be updated");
1600 1600
1601 if (!sync_everything) { 1601 if (!sync_everything) {
1602 const syncer::ModelTypeSet current_types = GetPreferredDataTypes(); 1602 const syncer::ModelTypeSet current_types = GetPreferredDataTypes();
1603 1603
1604 syncer::ModelTypeSet type_set = syncer::UserSelectableTypes(); 1604 syncer::ModelTypeSet type_set = syncer::UserSelectableTypes();
1605 syncer::ModelTypeSet::Iterator it = type_set.First(); 1605 syncer::ModelTypeSet::Iterator it = type_set.First();
1606 1606
1607 DCHECK_EQ(arraysize(user_selectable_types), type_set.Size()); 1607 DCHECK_EQ(arraysize(user_selectable_types), type_set.Size());
1608 1608
(...skipping 894 matching lines...) Expand 10 before | Expand all | Expand 10 after
2503 if (--outstanding_setup_in_progress_handles_ != 0) 2503 if (--outstanding_setup_in_progress_handles_ != 0)
2504 return; 2504 return;
2505 2505
2506 DCHECK(startup_controller_->IsSetupInProgress()); 2506 DCHECK(startup_controller_->IsSetupInProgress());
2507 startup_controller_->SetSetupInProgress(false); 2507 startup_controller_->SetSetupInProgress(false);
2508 2508
2509 if (IsBackendInitialized()) 2509 if (IsBackendInitialized())
2510 ReconfigureDatatypeManager(); 2510 ReconfigureDatatypeManager();
2511 NotifyObservers(); 2511 NotifyObservers();
2512 } 2512 }
OLDNEW
« no previous file with comments | « no previous file | components/sync/base/data_type_histogram.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698