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/singleton_tabs.h" | 5 #include "chrome/browser/ui/singleton_tabs.h" |
6 | 6 |
7 #include "chrome/browser/profiles/profile.h" | 7 #include "chrome/browser/profiles/profile.h" |
8 #include "chrome/browser/search/search.h" | 8 #include "chrome/browser/search/search.h" |
9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_navigator.h" | 10 #include "chrome/browser/ui/browser_navigator.h" |
| 11 #include "chrome/browser/ui/browser_navigator_params.h" |
11 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 12 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
12 #include "chrome/common/url_constants.h" | 13 #include "chrome/common/url_constants.h" |
13 #include "content/public/browser/browser_url_handler.h" | 14 #include "content/public/browser/browser_url_handler.h" |
14 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
15 | 16 |
16 namespace chrome { | 17 namespace chrome { |
17 namespace { | 18 namespace { |
18 | 19 |
19 // Returns true if two URLs are equal after taking |replacements| into account. | 20 // Returns true if two URLs are equal after taking |replacements| into account. |
20 bool CompareURLsWithReplacements(const GURL& url, | 21 bool CompareURLsWithReplacements(const GURL& url, |
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 replacements)) { | 124 replacements)) { |
124 params->target_contents = tab; | 125 params->target_contents = tab; |
125 return tab_index; | 126 return tab_index; |
126 } | 127 } |
127 } | 128 } |
128 | 129 |
129 return -1; | 130 return -1; |
130 } | 131 } |
131 | 132 |
132 } // namespace chrome | 133 } // namespace chrome |
OLD | NEW |