OLD | NEW |
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/browser/profile_sync_service.h" | 5 #include "components/browser_sync/browser/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 1600 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1611 sync_driver::user_selectable_type::PREFERENCES, | 1611 sync_driver::user_selectable_type::PREFERENCES, |
1612 sync_driver::user_selectable_type::PASSWORDS, | 1612 sync_driver::user_selectable_type::PASSWORDS, |
1613 sync_driver::user_selectable_type::AUTOFILL, | 1613 sync_driver::user_selectable_type::AUTOFILL, |
1614 sync_driver::user_selectable_type::THEMES, | 1614 sync_driver::user_selectable_type::THEMES, |
1615 sync_driver::user_selectable_type::TYPED_URLS, | 1615 sync_driver::user_selectable_type::TYPED_URLS, |
1616 sync_driver::user_selectable_type::EXTENSIONS, | 1616 sync_driver::user_selectable_type::EXTENSIONS, |
1617 sync_driver::user_selectable_type::APPS, | 1617 sync_driver::user_selectable_type::APPS, |
1618 sync_driver::user_selectable_type::PROXY_TABS, | 1618 sync_driver::user_selectable_type::PROXY_TABS, |
1619 }; | 1619 }; |
1620 | 1620 |
1621 static_assert(37 == syncer::MODEL_TYPE_COUNT, | 1621 static_assert(38 == syncer::MODEL_TYPE_COUNT, |
1622 "custom config histogram must be updated"); | 1622 "custom config histogram must be updated"); |
1623 | 1623 |
1624 if (!sync_everything) { | 1624 if (!sync_everything) { |
1625 const syncer::ModelTypeSet current_types = GetPreferredDataTypes(); | 1625 const syncer::ModelTypeSet current_types = GetPreferredDataTypes(); |
1626 | 1626 |
1627 syncer::ModelTypeSet type_set = syncer::UserSelectableTypes(); | 1627 syncer::ModelTypeSet type_set = syncer::UserSelectableTypes(); |
1628 syncer::ModelTypeSet::Iterator it = type_set.First(); | 1628 syncer::ModelTypeSet::Iterator it = type_set.First(); |
1629 | 1629 |
1630 DCHECK_EQ(arraysize(user_selectable_types), type_set.Size()); | 1630 DCHECK_EQ(arraysize(user_selectable_types), type_set.Size()); |
1631 | 1631 |
(...skipping 899 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2531 if (--outstanding_setup_in_progress_handles_ != 0) | 2531 if (--outstanding_setup_in_progress_handles_ != 0) |
2532 return; | 2532 return; |
2533 | 2533 |
2534 DCHECK(startup_controller_->IsSetupInProgress()); | 2534 DCHECK(startup_controller_->IsSetupInProgress()); |
2535 startup_controller_->SetSetupInProgress(false); | 2535 startup_controller_->SetSetupInProgress(false); |
2536 | 2536 |
2537 if (IsBackendInitialized()) | 2537 if (IsBackendInitialized()) |
2538 ReconfigureDatatypeManager(); | 2538 ReconfigureDatatypeManager(); |
2539 NotifyObservers(); | 2539 NotifyObservers(); |
2540 } | 2540 } |
OLD | NEW |