| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |