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/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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 if (base::DirectoryExists(directory_path)) { | 159 if (base::DirectoryExists(directory_path)) { |
160 if (!base::DeleteFile(directory_path, true)) | 160 if (!base::DeleteFile(directory_path, true)) |
161 LOG(DFATAL) << "Could not delete the Sync Data folder."; | 161 LOG(DFATAL) << "Could not delete the Sync Data folder."; |
162 } | 162 } |
163 } | 163 } |
164 | 164 |
165 } // namespace | 165 } // namespace |
166 | 166 |
167 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error) { | 167 bool ShouldShowActionOnUI(const syncer::SyncProtocolError& error) { |
168 return (error.action != syncer::UNKNOWN_ACTION && | 168 return (error.action != syncer::UNKNOWN_ACTION && |
| 169 error.action != syncer::STOP_AND_RESTART_SYNC && |
| 170 error.action != syncer::CLEAR_USER_DATA_AND_RESYNC && |
169 error.action != syncer::DISABLE_SYNC_ON_CLIENT && | 171 error.action != syncer::DISABLE_SYNC_ON_CLIENT && |
170 error.action != syncer::STOP_SYNC_FOR_DISABLED_ACCOUNT && | 172 error.action != syncer::STOP_SYNC_FOR_DISABLED_ACCOUNT && |
171 error.action != syncer::RESET_LOCAL_SYNC_DATA); | 173 error.action != syncer::RESET_LOCAL_SYNC_DATA); |
172 } | 174 } |
173 | 175 |
174 ProfileSyncService::InitParams::InitParams() = default; | 176 ProfileSyncService::InitParams::InitParams() = default; |
175 ProfileSyncService::InitParams::~InitParams() = default; | 177 ProfileSyncService::InitParams::~InitParams() = default; |
176 ProfileSyncService::InitParams::InitParams(InitParams&& other) // NOLINT | 178 ProfileSyncService::InitParams::InitParams(InitParams&& other) // NOLINT |
177 : sync_client(std::move(other.sync_client)), | 179 : sync_client(std::move(other.sync_client)), |
178 signin_wrapper(std::move(other.signin_wrapper)), | 180 signin_wrapper(std::move(other.signin_wrapper)), |
(...skipping 2317 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2496 | 2498 |
2497 DCHECK(startup_controller_->IsSetupInProgress()); | 2499 DCHECK(startup_controller_->IsSetupInProgress()); |
2498 startup_controller_->SetSetupInProgress(false); | 2500 startup_controller_->SetSetupInProgress(false); |
2499 | 2501 |
2500 if (IsBackendInitialized()) | 2502 if (IsBackendInitialized()) |
2501 ReconfigureDatatypeManager(); | 2503 ReconfigureDatatypeManager(); |
2502 NotifyObservers(); | 2504 NotifyObservers(); |
2503 } | 2505 } |
2504 | 2506 |
2505 } // namespace browser_sync | 2507 } // namespace browser_sync |
OLD | NEW |