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

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

Issue 2710623003: [sync] Clean up path generation for the local sync database. (Closed)
Patch Set: Fix non-windows bots. Created 3 years, 9 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
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 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
169 syncer::GetSyncServiceURL(*base::CommandLine::ForCurrentProcess(), 169 syncer::GetSyncServiceURL(*base::CommandLine::ForCurrentProcess(),
170 init_params.channel)), 170 init_params.channel)),
171 network_time_update_callback_( 171 network_time_update_callback_(
172 std::move(init_params.network_time_update_callback)), 172 std::move(init_params.network_time_update_callback)),
173 url_request_context_(init_params.url_request_context), 173 url_request_context_(init_params.url_request_context),
174 blocking_task_runner_(std::move(init_params.blocking_task_runner)), 174 blocking_task_runner_(std::move(init_params.blocking_task_runner)),
175 is_first_time_sync_configure_(false), 175 is_first_time_sync_configure_(false),
176 engine_initialized_(false), 176 engine_initialized_(false),
177 sync_disabled_by_admin_(false), 177 sync_disabled_by_admin_(false),
178 is_auth_in_progress_(false), 178 is_auth_in_progress_(false),
179 local_sync_backend_folder_(init_params.local_sync_backend_folder),
180 unrecoverable_error_reason_(ERROR_REASON_UNSET), 179 unrecoverable_error_reason_(ERROR_REASON_UNSET),
181 expect_sync_configuration_aborted_(false), 180 expect_sync_configuration_aborted_(false),
182 configure_status_(DataTypeManager::UNKNOWN), 181 configure_status_(DataTypeManager::UNKNOWN),
183 oauth2_token_service_(init_params.oauth2_token_service), 182 oauth2_token_service_(init_params.oauth2_token_service),
184 request_access_token_backoff_(&kRequestAccessTokenBackoffPolicy), 183 request_access_token_backoff_(&kRequestAccessTokenBackoffPolicy),
185 connection_status_(syncer::CONNECTION_NOT_ATTEMPTED), 184 connection_status_(syncer::CONNECTION_NOT_ATTEMPTED),
186 last_get_token_error_(GoogleServiceAuthError::AuthErrorNone()), 185 last_get_token_error_(GoogleServiceAuthError::AuthErrorNone()),
187 gaia_cookie_manager_service_(init_params.gaia_cookie_manager_service), 186 gaia_cookie_manager_service_(init_params.gaia_cookie_manager_service),
188 network_resources_(new syncer::HttpBridgeNetworkResources), 187 network_resources_(new syncer::HttpBridgeNetworkResources),
189 start_behavior_(init_params.start_behavior), 188 start_behavior_(init_params.start_behavior),
(...skipping 2230 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 2419
2421 DCHECK(startup_controller_->IsSetupInProgress()); 2420 DCHECK(startup_controller_->IsSetupInProgress());
2422 startup_controller_->SetSetupInProgress(false); 2421 startup_controller_->SetSetupInProgress(false);
2423 2422
2424 if (IsEngineInitialized()) 2423 if (IsEngineInitialized())
2425 ReconfigureDatatypeManager(); 2424 ReconfigureDatatypeManager();
2426 NotifyObservers(); 2425 NotifyObservers();
2427 } 2426 }
2428 2427
2429 } // namespace browser_sync 2428 } // namespace browser_sync
OLDNEW
« no previous file with comments | « components/browser_sync/profile_sync_service.h ('k') | components/browser_sync/profile_sync_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698