OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <string> | 10 #include <string> |
(...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
221 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" | 221 #include "components/autofill/core/browser/autofill_ie_toolbar_import_win.h" |
222 #include "ui/base/touch/touch_device.h" | 222 #include "ui/base/touch/touch_device.h" |
223 #include "ui/base/win/shell.h" | 223 #include "ui/base/win/shell.h" |
224 #endif // OS_WIN | 224 #endif // OS_WIN |
225 | 225 |
226 #if defined(OS_CHROMEOS) | 226 #if defined(OS_CHROMEOS) |
227 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" | 227 #include "chrome/browser/chromeos/fileapi/external_file_url_util.h" |
228 #endif | 228 #endif |
229 | 229 |
230 #if defined(USE_ASH) | 230 #if defined(USE_ASH) |
231 #include "ash/common/ash_switches.h" | 231 #include "ash/common/ash_switches.h" // nogncheck |
232 #include "ash/shell.h" | 232 #include "ash/shell.h" // nogncheck |
233 #endif | 233 #endif |
234 | 234 |
235 using base::TimeDelta; | 235 using base::TimeDelta; |
236 using base::UserMetricsAction; | 236 using base::UserMetricsAction; |
237 using content::NativeWebKeyboardEvent; | 237 using content::NativeWebKeyboardEvent; |
238 using content::NavigationController; | 238 using content::NavigationController; |
239 using content::NavigationEntry; | 239 using content::NavigationEntry; |
240 using content::OpenURLParams; | 240 using content::OpenURLParams; |
241 using content::PluginService; | 241 using content::PluginService; |
242 using content::Referrer; | 242 using content::Referrer; |
(...skipping 2357 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2600 if (contents && !allow_js_access) { | 2600 if (contents && !allow_js_access) { |
2601 contents->web_contents()->GetController().LoadURL( | 2601 contents->web_contents()->GetController().LoadURL( |
2602 target_url, | 2602 target_url, |
2603 content::Referrer(), | 2603 content::Referrer(), |
2604 ui::PAGE_TRANSITION_LINK, | 2604 ui::PAGE_TRANSITION_LINK, |
2605 std::string()); // No extra headers. | 2605 std::string()); // No extra headers. |
2606 } | 2606 } |
2607 | 2607 |
2608 return contents != NULL; | 2608 return contents != NULL; |
2609 } | 2609 } |
OLD | NEW |