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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/logging.h" | 9 #include "base/logging.h" |
10 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 10 matching lines...) Expand all Loading... |
21 #include "chrome/browser/search_engines/template_url_service_observer.h" | 21 #include "chrome/browser/search_engines/template_url_service_observer.h" |
22 #include "chrome/browser/webdata/keyword_table.h" | 22 #include "chrome/browser/webdata/keyword_table.h" |
23 #include "chrome/common/chrome_notification_types.h" | 23 #include "chrome/common/chrome_notification_types.h" |
24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
25 #include "content/public/browser/notification_observer.h" | 25 #include "content/public/browser/notification_observer.h" |
26 #include "content/public/browser/notification_registrar.h" | 26 #include "content/public/browser/notification_registrar.h" |
27 #include "content/public/browser/notification_service.h" | 27 #include "content/public/browser/notification_service.h" |
28 #include "googleurl/src/gurl.h" | 28 #include "googleurl/src/gurl.h" |
29 #include "grit/chromium_strings.h" | 29 #include "grit/chromium_strings.h" |
30 #include "grit/generated_resources.h" | 30 #include "grit/generated_resources.h" |
31 #include "grit/theme_resources.h" | 31 #include "grit/theme_resources_standard.h" |
32 #include "ui/base/l10n/l10n_util.h" | 32 #include "ui/base/l10n/l10n_util.h" |
33 | 33 |
34 namespace protector { | 34 namespace protector { |
35 | 35 |
36 namespace { | 36 namespace { |
37 | 37 |
38 // Maximum length of the search engine name to be displayed. | 38 // Maximum length of the search engine name to be displayed. |
39 const size_t kMaxDisplayedNameLength = 16; | 39 const size_t kMaxDisplayedNameLength = 16; |
40 | 40 |
41 // Matches TemplateURL with all fields set from the prepopulated data equal | 41 // Matches TemplateURL with all fields set from the prepopulated data equal |
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
424 DCHECK(url_service); | 424 DCHECK(url_service); |
425 return url_service; | 425 return url_service; |
426 } | 426 } |
427 | 427 |
428 BaseSettingChange* CreateDefaultSearchProviderChange(TemplateURL* actual, | 428 BaseSettingChange* CreateDefaultSearchProviderChange(TemplateURL* actual, |
429 TemplateURL* backup) { | 429 TemplateURL* backup) { |
430 return new DefaultSearchProviderChange(actual, backup); | 430 return new DefaultSearchProviderChange(actual, backup); |
431 } | 431 } |
432 | 432 |
433 } // namespace protector | 433 } // namespace protector |
OLD | NEW |