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 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" | 146 #include "chrome/browser/ui/website_settings/permission_bubble_manager.h" |
147 #include "chrome/browser/ui/webui/signin/login_ui_service.h" | 147 #include "chrome/browser/ui/webui/signin/login_ui_service.h" |
148 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" | 148 #include "chrome/browser/ui/webui/signin/login_ui_service_factory.h" |
149 #include "chrome/browser/ui/window_sizer/window_sizer.h" | 149 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
150 #include "chrome/browser/upgrade_detector.h" | 150 #include "chrome/browser/upgrade_detector.h" |
151 #include "chrome/common/chrome_constants.h" | 151 #include "chrome/common/chrome_constants.h" |
152 #include "chrome/common/chrome_switches.h" | 152 #include "chrome/common/chrome_switches.h" |
153 #include "chrome/common/custom_handlers/protocol_handler.h" | 153 #include "chrome/common/custom_handlers/protocol_handler.h" |
154 #include "chrome/common/pref_names.h" | 154 #include "chrome/common/pref_names.h" |
155 #include "chrome/common/profiling.h" | 155 #include "chrome/common/profiling.h" |
156 #include "chrome/common/search_types.h" | 156 #include "chrome/common/search/search_types.h" |
157 #include "chrome/common/url_constants.h" | 157 #include "chrome/common/url_constants.h" |
158 #include "chrome/grit/chromium_strings.h" | 158 #include "chrome/grit/chromium_strings.h" |
159 #include "chrome/grit/generated_resources.h" | 159 #include "chrome/grit/generated_resources.h" |
160 #include "chrome/grit/locale_settings.h" | 160 #include "chrome/grit/locale_settings.h" |
161 #include "components/app_modal/javascript_dialog_manager.h" | 161 #include "components/app_modal/javascript_dialog_manager.h" |
162 #include "components/bookmarks/browser/bookmark_model.h" | 162 #include "components/bookmarks/browser/bookmark_model.h" |
163 #include "components/bookmarks/browser/bookmark_utils.h" | 163 #include "components/bookmarks/browser/bookmark_utils.h" |
164 #include "components/bookmarks/common/bookmark_pref_names.h" | 164 #include "components/bookmarks/common/bookmark_pref_names.h" |
165 #include "components/browser_sync/browser/profile_sync_service.h" | 165 #include "components/browser_sync/browser/profile_sync_service.h" |
166 #include "components/bubble/bubble_controller.h" | 166 #include "components/bubble/bubble_controller.h" |
(...skipping 2435 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2602 if (contents && !allow_js_access) { | 2602 if (contents && !allow_js_access) { |
2603 contents->web_contents()->GetController().LoadURL( | 2603 contents->web_contents()->GetController().LoadURL( |
2604 target_url, | 2604 target_url, |
2605 content::Referrer(), | 2605 content::Referrer(), |
2606 ui::PAGE_TRANSITION_LINK, | 2606 ui::PAGE_TRANSITION_LINK, |
2607 std::string()); // No extra headers. | 2607 std::string()); // No extra headers. |
2608 } | 2608 } |
2609 | 2609 |
2610 return contents != NULL; | 2610 return contents != NULL; |
2611 } | 2611 } |
OLD | NEW |