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

Unified Diff: chrome/browser/search_engines/template_url_service.cc

Issue 10696087: [Sync] Move ModelType and related classes to 'syncer' namespace (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort headers, update copyrights Created 8 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/search_engines/template_url_service.cc
diff --git a/chrome/browser/search_engines/template_url_service.cc b/chrome/browser/search_engines/template_url_service.cc
index f29c6e3252e9889e14cb375b9760f3c3445b1804..dd42b10327546dbe5c157a8dc15e199b5b0bbbdf 100644
--- a/chrome/browser/search_engines/template_url_service.cc
+++ b/chrome/browser/search_engines/template_url_service.cc
@@ -864,8 +864,8 @@ void TemplateURLService::Observe(int type,
}
syncer::SyncDataList TemplateURLService::GetAllSyncData(
- syncable::ModelType type) const {
- DCHECK_EQ(syncable::SEARCH_ENGINES, type);
+ syncer::ModelType type) const {
+ DCHECK_EQ(syncer::SEARCH_ENGINES, type);
syncer::SyncDataList current_data;
for (TemplateURLVector::const_iterator iter = template_urls_.begin();
@@ -889,7 +889,7 @@ syncer::SyncError TemplateURLService::ProcessSyncChanges(
const syncer::SyncChangeList& change_list) {
if (!models_associated_) {
syncer::SyncError error(FROM_HERE, "Models not yet associated.",
- syncable::SEARCH_ENGINES);
+ syncer::SEARCH_ENGINES);
return error;
}
DCHECK(loaded_);
@@ -906,7 +906,7 @@ syncer::SyncError TemplateURLService::ProcessSyncChanges(
syncer::SyncError error;
for (syncer::SyncChangeList::const_iterator iter = change_list.begin();
iter != change_list.end(); ++iter) {
- DCHECK_EQ(syncable::SEARCH_ENGINES, iter->sync_data().GetDataType());
+ DCHECK_EQ(syncer::SEARCH_ENGINES, iter->sync_data().GetDataType());
std::string guid =
iter->sync_data().GetSpecifics().search_engine().sync_guid();
@@ -1011,12 +1011,12 @@ syncer::SyncError TemplateURLService::ProcessSyncChanges(
}
syncer::SyncError TemplateURLService::MergeDataAndStartSyncing(
- syncable::ModelType type,
+ syncer::ModelType type,
const syncer::SyncDataList& initial_sync_data,
scoped_ptr<syncer::SyncChangeProcessor> sync_processor,
scoped_ptr<syncer::SyncErrorFactory> sync_error_factory) {
DCHECK(loaded_);
- DCHECK_EQ(type, syncable::SEARCH_ENGINES);
+ DCHECK_EQ(type, syncer::SEARCH_ENGINES);
DCHECK(!sync_processor_.get());
DCHECK(sync_processor.get());
DCHECK(sync_error_factory.get());
@@ -1049,7 +1049,7 @@ syncer::SyncError TemplateURLService::MergeDataAndStartSyncing(
// Build maps of our sync GUIDs to syncer::SyncData.
SyncDataMap local_data_map = CreateGUIDToSyncDataMap(
- GetAllSyncData(syncable::SEARCH_ENGINES));
+ GetAllSyncData(syncer::SEARCH_ENGINES));
SyncDataMap sync_data_map = CreateGUIDToSyncDataMap(initial_sync_data);
for (SyncDataMap::const_iterator iter = sync_data_map.begin();
@@ -1152,8 +1152,8 @@ syncer::SyncError TemplateURLService::MergeDataAndStartSyncing(
return syncer::SyncError();
}
-void TemplateURLService::StopSyncing(syncable::ModelType type) {
- DCHECK_EQ(type, syncable::SEARCH_ENGINES);
+void TemplateURLService::StopSyncing(syncer::ModelType type) {
+ DCHECK_EQ(type, syncer::SEARCH_ENGINES);
models_associated_ = false;
sync_processor_.reset();
sync_error_factory_.reset();

Powered by Google App Engine
This is Rietveld 408576698