| OLD | NEW |
| 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 "chrome/browser/sync/test/integration/search_engines_helper.h" | 5 #include "chrome/browser/sync/test/integration/search_engines_helper.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <vector> | 9 #include <vector> |
| 8 | 10 |
| 9 #include "base/strings/string_util.h" | 11 #include "base/strings/string_util.h" |
| 10 #include "base/strings/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 12 #include "base/time/time.h" | 14 #include "base/time/time.h" |
| 13 #include "chrome/browser/profiles/profile.h" | 15 #include "chrome/browser/profiles/profile.h" |
| 14 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
| 15 #include "chrome/browser/sync/test/integration/await_match_status_change_checker
.h" | 17 #include "chrome/browser/sync/test/integration/await_match_status_change_checker
.h" |
| 16 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" | 18 #include "chrome/browser/sync/test/integration/profile_sync_service_harness.h" |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 } | 276 } |
| 275 | 277 |
| 276 bool HasSearchEngine(int profile_index, int seed) { | 278 bool HasSearchEngine(int profile_index, int seed) { |
| 277 TemplateURLService* service = GetServiceForBrowserContext(profile_index); | 279 TemplateURLService* service = GetServiceForBrowserContext(profile_index); |
| 278 base::string16 keyword(CreateKeyword(seed)); | 280 base::string16 keyword(CreateKeyword(seed)); |
| 279 TemplateURL* turl = service->GetTemplateURLForKeyword(keyword); | 281 TemplateURL* turl = service->GetTemplateURLForKeyword(keyword); |
| 280 return turl != nullptr; | 282 return turl != nullptr; |
| 281 } | 283 } |
| 282 | 284 |
| 283 } // namespace search_engines_helper | 285 } // namespace search_engines_helper |
| OLD | NEW |