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

Side by Side Diff: components/search_engines/keyword_web_data_service.cc

Issue 367023002: Componentize TemplateURLService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/webdata/keyword_web_data_service.h" 5 #include "components/search_engines/keyword_web_data_service.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "chrome/browser/webdata/keyword_table.h" 8 #include "components/search_engines/keyword_table.h"
9 #include "components/search_engines/template_url_data.h" 9 #include "components/search_engines/template_url_data.h"
10 #include "components/webdata/common/web_data_results.h" 10 #include "components/webdata/common/web_data_results.h"
11 #include "components/webdata/common/web_database_service.h" 11 #include "components/webdata/common/web_database_service.h"
12 12
13 using base::Bind; 13 using base::Bind;
14 14
15 WDKeywordsResult::WDKeywordsResult() 15 WDKeywordsResult::WDKeywordsResult()
16 : default_search_provider_id(0), 16 : default_search_provider_id(0),
17 builtin_keyword_version(0) { 17 builtin_keyword_version(0) {
18 } 18 }
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 return KeywordTable::FromWebDatabase(db)->SetDefaultSearchProviderID(id) ? 140 return KeywordTable::FromWebDatabase(db)->SetDefaultSearchProviderID(id) ?
141 WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED; 141 WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED;
142 } 142 }
143 143
144 WebDatabase::State KeywordWebDataService::SetBuiltinKeywordVersionImpl( 144 WebDatabase::State KeywordWebDataService::SetBuiltinKeywordVersionImpl(
145 int version, 145 int version,
146 WebDatabase* db) { 146 WebDatabase* db) {
147 return KeywordTable::FromWebDatabase(db)->SetBuiltinKeywordVersion(version) ? 147 return KeywordTable::FromWebDatabase(db)->SetBuiltinKeywordVersion(version) ?
148 WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED; 148 WebDatabase::COMMIT_NEEDED : WebDatabase::COMMIT_NOT_NEEDED;
149 } 149 }
OLDNEW
« no previous file with comments | « components/search_engines/keyword_web_data_service.h ('k') | components/search_engines/search_host_to_urls_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698