OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/search_engines/template_url_model.h" | 5 #include "chrome/browser/search_engines/template_url_model.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 | 8 |
| 9 #include "app/l10n_util.h" |
9 #include "base/logging.h" | 10 #include "base/logging.h" |
10 #include "base/stl_util-inl.h" | 11 #include "base/stl_util-inl.h" |
11 #include "base/string_util.h" | 12 #include "base/string_util.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/google_url_tracker.h" | 14 #include "chrome/browser/google_url_tracker.h" |
14 #include "chrome/browser/history/history.h" | 15 #include "chrome/browser/history/history.h" |
15 #include "chrome/browser/net/url_fixer_upper.h" | 16 #include "chrome/browser/net/url_fixer_upper.h" |
16 #include "chrome/browser/profile.h" | 17 #include "chrome/browser/profile.h" |
17 #include "chrome/browser/rlz/rlz.h" | 18 #include "chrome/browser/rlz/rlz.h" |
18 #include "chrome/browser/search_engines/template_url.h" | 19 #include "chrome/browser/search_engines/template_url.h" |
19 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" | 20 #include "chrome/browser/search_engines/template_url_prepopulate_data.h" |
20 #include "chrome/common/l10n_util.h" | |
21 #include "chrome/common/notification_service.h" | 21 #include "chrome/common/notification_service.h" |
22 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
23 #include "chrome/common/pref_service.h" | 23 #include "chrome/common/pref_service.h" |
24 #include "chrome/common/url_constants.h" | 24 #include "chrome/common/url_constants.h" |
25 #include "googleurl/src/gurl.h" | 25 #include "googleurl/src/gurl.h" |
26 #include "googleurl/src/url_parse.h" | 26 #include "googleurl/src/url_parse.h" |
27 #include "grit/locale_settings.h" | 27 #include "grit/locale_settings.h" |
28 #include "net/base/net_util.h" | 28 #include "net/base/net_util.h" |
29 #include "unicode/rbbi.h" | 29 #include "unicode/rbbi.h" |
30 #include "unicode/uchar.h" | 30 #include "unicode/uchar.h" |
(...skipping 980 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1011 AddToMaps(t_url); | 1011 AddToMaps(t_url); |
1012 something_changed = true; | 1012 something_changed = true; |
1013 } | 1013 } |
1014 } | 1014 } |
1015 | 1015 |
1016 if (something_changed && loaded_) { | 1016 if (something_changed && loaded_) { |
1017 FOR_EACH_OBSERVER(TemplateURLModelObserver, model_observers_, | 1017 FOR_EACH_OBSERVER(TemplateURLModelObserver, model_observers_, |
1018 OnTemplateURLModelChanged()); | 1018 OnTemplateURLModelChanged()); |
1019 } | 1019 } |
1020 } | 1020 } |
OLD | NEW |