| 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 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 #include "chrome/browser/ui/window_sizer/window_sizer.h" | 147 #include "chrome/browser/ui/window_sizer/window_sizer.h" |
| 148 #include "chrome/browser/upgrade_detector.h" | 148 #include "chrome/browser/upgrade_detector.h" |
| 149 #include "chrome/common/chrome_constants.h" | 149 #include "chrome/common/chrome_constants.h" |
| 150 #include "chrome/common/chrome_switches.h" | 150 #include "chrome/common/chrome_switches.h" |
| 151 #include "chrome/common/custom_handlers/protocol_handler.h" | 151 #include "chrome/common/custom_handlers/protocol_handler.h" |
| 152 #include "chrome/common/pref_names.h" | 152 #include "chrome/common/pref_names.h" |
| 153 #include "chrome/common/profiling.h" | 153 #include "chrome/common/profiling.h" |
| 154 #include "chrome/common/ssl_insecure_content.h" | 154 #include "chrome/common/ssl_insecure_content.h" |
| 155 #include "chrome/common/url_constants.h" | 155 #include "chrome/common/url_constants.h" |
| 156 #include "chrome/grit/chromium_strings.h" | 156 #include "chrome/grit/chromium_strings.h" |
| 157 #include "chrome/grit/generated_resources.h" | |
| 158 #include "chrome/grit/locale_settings.h" | |
| 159 #include "components/bookmarks/browser/bookmark_model.h" | 157 #include "components/bookmarks/browser/bookmark_model.h" |
| 160 #include "components/bookmarks/browser/bookmark_utils.h" | 158 #include "components/bookmarks/browser/bookmark_utils.h" |
| 161 #include "components/bookmarks/common/bookmark_pref_names.h" | 159 #include "components/bookmarks/common/bookmark_pref_names.h" |
| 162 #include "components/browser_sync/profile_sync_service.h" | 160 #include "components/browser_sync/profile_sync_service.h" |
| 163 #include "components/bubble/bubble_controller.h" | 161 #include "components/bubble/bubble_controller.h" |
| 164 #include "components/content_settings/core/browser/host_content_settings_map.h" | 162 #include "components/content_settings/core/browser/host_content_settings_map.h" |
| 165 #include "components/favicon/content/content_favicon_driver.h" | 163 #include "components/favicon/content/content_favicon_driver.h" |
| 166 #include "components/prefs/pref_service.h" | 164 #include "components/prefs/pref_service.h" |
| 167 #include "components/search/search.h" | 165 #include "components/search/search.h" |
| 168 #include "components/security_state/content/content_utils.h" | 166 #include "components/security_state/content/content_utils.h" |
| (...skipping 2459 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2628 // new window later, thus we need to navigate the window now. | 2626 // new window later, thus we need to navigate the window now. |
| 2629 if (contents) { | 2627 if (contents) { |
| 2630 contents->web_contents()->GetController().LoadURL( | 2628 contents->web_contents()->GetController().LoadURL( |
| 2631 target_url, content::Referrer(), ui::PAGE_TRANSITION_LINK, | 2629 target_url, content::Referrer(), ui::PAGE_TRANSITION_LINK, |
| 2632 std::string()); // No extra headers. | 2630 std::string()); // No extra headers. |
| 2633 } | 2631 } |
| 2634 } | 2632 } |
| 2635 | 2633 |
| 2636 return contents != NULL; | 2634 return contents != NULL; |
| 2637 } | 2635 } |
| OLD | NEW |