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

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

Issue 504273003: Remove implicit conversions from scoped_refptr to T* in chrome/browser/sync/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Propagate Created 6 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/sync_backend_host_core.h" 5 #include "chrome/browser/sync/glue/sync_backend_host_core.h"
6 6
7 #include "base/files/file_util.h" 7 #include "base/files/file_util.h"
8 #include "base/metrics/histogram.h" 8 #include "base/metrics/histogram.h"
9 #include "chrome/browser/sync/glue/device_info.h" 9 #include "chrome/browser/sync/glue/device_info.h"
10 #include "chrome/browser/sync/glue/invalidation_adapter.h" 10 #include "chrome/browser/sync/glue/invalidation_adapter.h"
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
430 430
431 sync_manager_ = options->sync_manager_factory->CreateSyncManager(name_); 431 sync_manager_ = options->sync_manager_factory->CreateSyncManager(name_);
432 sync_manager_->AddObserver(this); 432 sync_manager_->AddObserver(this);
433 433
434 syncer::SyncManager::InitArgs args; 434 syncer::SyncManager::InitArgs args;
435 args.database_location = sync_data_folder_path_; 435 args.database_location = sync_data_folder_path_;
436 args.event_handler = options->event_handler; 436 args.event_handler = options->event_handler;
437 args.service_url = options->service_url; 437 args.service_url = options->service_url;
438 args.post_factory = options->http_bridge_factory.Pass(); 438 args.post_factory = options->http_bridge_factory.Pass();
439 args.workers = options->workers; 439 args.workers = options->workers;
440 args.extensions_activity = options->extensions_activity; 440 args.extensions_activity = options->extensions_activity.get();
441 args.change_delegate = options->registrar; // as SyncManager::ChangeDelegate 441 args.change_delegate = options->registrar; // as SyncManager::ChangeDelegate
442 args.credentials = options->credentials; 442 args.credentials = options->credentials;
443 args.invalidator_client_id = options->invalidator_client_id; 443 args.invalidator_client_id = options->invalidator_client_id;
444 args.restored_key_for_bootstrapping = options->restored_key_for_bootstrapping; 444 args.restored_key_for_bootstrapping = options->restored_key_for_bootstrapping;
445 args.restored_keystore_key_for_bootstrapping = 445 args.restored_keystore_key_for_bootstrapping =
446 options->restored_keystore_key_for_bootstrapping; 446 options->restored_keystore_key_for_bootstrapping;
447 args.internal_components_factory = 447 args.internal_components_factory =
448 options->internal_components_factory.Pass(); 448 options->internal_components_factory.Pass();
449 args.encryptor = &encryptor_; 449 args.encryptor = &encryptor_;
450 args.unrecoverable_error_handler = 450 args.unrecoverable_error_handler =
(...skipping 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
756 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds), 756 base::TimeDelta::FromSeconds(kSaveChangesIntervalSeconds),
757 this, &SyncBackendHostCore::SaveChanges); 757 this, &SyncBackendHostCore::SaveChanges);
758 } 758 }
759 759
760 void SyncBackendHostCore::SaveChanges() { 760 void SyncBackendHostCore::SaveChanges() {
761 DCHECK_EQ(base::MessageLoop::current(), sync_loop_); 761 DCHECK_EQ(base::MessageLoop::current(), sync_loop_);
762 sync_manager_->SaveChanges(); 762 sync_manager_->SaveChanges();
763 } 763 }
764 764
765 } // namespace browser_sync 765 } // namespace browser_sync
OLDNEW
« no previous file with comments | « chrome/browser/sync/glue/password_data_type_controller.cc ('k') | chrome/browser/sync/profile_sync_components_factory_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698