| 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/browser.h" | 5 #include "chrome/browser/ui/browser.h" |
| 6 | 6 |
| 7 #if defined(OS_WIN) | 7 #if defined(OS_WIN) |
| 8 #include <windows.h> | 8 #include <windows.h> |
| 9 #include <shellapi.h> | 9 #include <shellapi.h> |
| 10 #endif // OS_WIN | 10 #endif // OS_WIN |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 132 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" | 132 #include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
| 133 #include "chrome/browser/ui/tab_contents/tab_contents.h" | 133 #include "chrome/browser/ui/tab_contents/tab_contents.h" |
| 134 #include "chrome/browser/ui/tabs/dock_info.h" | 134 #include "chrome/browser/ui/tabs/dock_info.h" |
| 135 #include "chrome/browser/ui/tabs/tab_menu_model.h" | 135 #include "chrome/browser/ui/tabs/tab_menu_model.h" |
| 136 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 136 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
| 137 #include "chrome/browser/ui/web_applications/web_app_ui.h" | 137 #include "chrome/browser/ui/web_applications/web_app_ui.h" |
| 138 #include "chrome/browser/ui/webui/feedback_ui.h" | 138 #include "chrome/browser/ui/webui/feedback_ui.h" |
| 139 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" | 139 #include "chrome/browser/ui/webui/ntp/app_launcher_handler.h" |
| 140 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 140 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
| 141 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 141 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
| 142 #include "chrome/browser/ui/window_sizer.h" | 142 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
| 143 #include "chrome/browser/upgrade_detector.h" | 143 #include "chrome/browser/upgrade_detector.h" |
| 144 #include "chrome/browser/web_applications/web_app.h" | 144 #include "chrome/browser/web_applications/web_app.h" |
| 145 #include "chrome/common/chrome_constants.h" | 145 #include "chrome/common/chrome_constants.h" |
| 146 #include "chrome/common/chrome_notification_types.h" | 146 #include "chrome/common/chrome_notification_types.h" |
| 147 #include "chrome/common/chrome_switches.h" | 147 #include "chrome/common/chrome_switches.h" |
| 148 #include "chrome/common/custom_handlers/protocol_handler.h" | 148 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 149 #include "chrome/common/extensions/extension.h" | 149 #include "chrome/common/extensions/extension.h" |
| 150 #include "chrome/common/extensions/extension_constants.h" | 150 #include "chrome/common/extensions/extension_constants.h" |
| 151 #include "chrome/common/pref_names.h" | 151 #include "chrome/common/pref_names.h" |
| 152 #include "chrome/common/profiling.h" | 152 #include "chrome/common/profiling.h" |
| (...skipping 2905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3058 if (contents && !allow_js_access) { | 3058 if (contents && !allow_js_access) { |
| 3059 contents->web_contents()->GetController().LoadURL( | 3059 contents->web_contents()->GetController().LoadURL( |
| 3060 target_url, | 3060 target_url, |
| 3061 content::Referrer(), | 3061 content::Referrer(), |
| 3062 content::PAGE_TRANSITION_LINK, | 3062 content::PAGE_TRANSITION_LINK, |
| 3063 std::string()); // No extra headers. | 3063 std::string()); // No extra headers. |
| 3064 } | 3064 } |
| 3065 | 3065 |
| 3066 return contents != NULL; | 3066 return contents != NULL; |
| 3067 } | 3067 } |
| OLD | NEW |