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/ui/search/search.h" | 5 #include "chrome/browser/ui/search/search.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/field_trial.h" | 8 #include "base/metrics/field_trial.h" |
9 #include "base/metrics/histogram.h" | 9 #include "base/metrics/histogram.h" |
10 #include "base/string_split.h" | |
11 #include "base/strings/string_number_conversions.h" | 10 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_split.h" |
12 #include "chrome/browser/instant/instant_service.h" | 12 #include "chrome/browser/instant/instant_service.h" |
13 #include "chrome/browser/instant/instant_service_factory.h" | 13 #include "chrome/browser/instant/instant_service_factory.h" |
14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
15 #include "chrome/browser/search_engines/template_url_service.h" | 15 #include "chrome/browser/search_engines/template_url_service.h" |
16 #include "chrome/browser/search_engines/template_url_service_factory.h" | 16 #include "chrome/browser/search_engines/template_url_service_factory.h" |
17 #include "chrome/common/chrome_switches.h" | 17 #include "chrome/common/chrome_switches.h" |
18 #include "chrome/common/url_constants.h" | 18 #include "chrome/common/url_constants.h" |
19 #include "content/public/browser/navigation_entry.h" | 19 #include "content/public/browser/navigation_entry.h" |
20 #include "content/public/browser/render_process_host.h" | 20 #include "content/public/browser/render_process_host.h" |
21 #include "content/public/browser/web_contents.h" | 21 #include "content/public/browser/web_contents.h" |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
409 GURL::Replacements replacements; | 409 GURL::Replacements replacements; |
410 replacements.SetSchemeStr(search_scheme); | 410 replacements.SetSchemeStr(search_scheme); |
411 replacements.SetHostStr(search_host); | 411 replacements.SetHostStr(search_host); |
412 replacements.SetPortStr(search_port); | 412 replacements.SetPortStr(search_port); |
413 replacements.SetPathStr(search_path); | 413 replacements.SetPathStr(search_path); |
414 return instant_url.ReplaceComponents(replacements); | 414 return instant_url.ReplaceComponents(replacements); |
415 } | 415 } |
416 | 416 |
417 } // namespace search | 417 } // namespace search |
418 } // namespace chrome | 418 } // namespace chrome |
OLD | NEW |