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_commands.h" | 5 #include "chrome/browser/ui/browser_commands.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/metrics/histogram.h" | 8 #include "base/metrics/histogram.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
(...skipping 15 matching lines...) Expand all Loading... |
26 #include "chrome/browser/sessions/tab_restore_service_factory.h" | 26 #include "chrome/browser/sessions/tab_restore_service_factory.h" |
27 #include "chrome/browser/translate/chrome_translate_client.h" | 27 #include "chrome/browser/translate/chrome_translate_client.h" |
28 #include "chrome/browser/ui/accelerator_utils.h" | 28 #include "chrome/browser/ui/accelerator_utils.h" |
29 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" | 29 #include "chrome/browser/ui/bookmarks/bookmark_utils.h" |
30 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" | 30 #include "chrome/browser/ui/bookmarks/bookmark_utils_desktop.h" |
31 #include "chrome/browser/ui/browser.h" | 31 #include "chrome/browser/ui/browser.h" |
32 #include "chrome/browser/ui/browser_command_controller.h" | 32 #include "chrome/browser/ui/browser_command_controller.h" |
33 #include "chrome/browser/ui/browser_dialogs.h" | 33 #include "chrome/browser/ui/browser_dialogs.h" |
34 #include "chrome/browser/ui/browser_instant_controller.h" | 34 #include "chrome/browser/ui/browser_instant_controller.h" |
35 #include "chrome/browser/ui/browser_live_tab_context.h" | 35 #include "chrome/browser/ui/browser_live_tab_context.h" |
| 36 #include "chrome/browser/ui/browser_navigator_params.h" |
36 #include "chrome/browser/ui/browser_tabstrip.h" | 37 #include "chrome/browser/ui/browser_tabstrip.h" |
37 #include "chrome/browser/ui/browser_window.h" | 38 #include "chrome/browser/ui/browser_window.h" |
38 #include "chrome/browser/ui/chrome_pages.h" | 39 #include "chrome/browser/ui/chrome_pages.h" |
39 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" | 40 #include "chrome/browser/ui/exclusive_access/fullscreen_controller.h" |
40 #include "chrome/browser/ui/find_bar/find_bar.h" | 41 #include "chrome/browser/ui/find_bar/find_bar.h" |
41 #include "chrome/browser/ui/find_bar/find_bar_controller.h" | 42 #include "chrome/browser/ui/find_bar/find_bar_controller.h" |
42 #include "chrome/browser/ui/find_bar/find_tab_helper.h" | 43 #include "chrome/browser/ui/find_bar/find_tab_helper.h" |
43 #include "chrome/browser/ui/location_bar/location_bar.h" | 44 #include "chrome/browser/ui/location_bar/location_bar.h" |
44 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" | 45 #include "chrome/browser/ui/passwords/manage_passwords_ui_controller.h" |
45 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" | 46 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" |
(...skipping 1261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 browser->host_desktop_type())); | 1308 browser->host_desktop_type())); |
1308 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1309 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1309 | 1310 |
1310 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1311 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1311 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1312 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1312 app_browser->window()->Show(); | 1313 app_browser->window()->Show(); |
1313 } | 1314 } |
1314 #endif // defined(ENABLE_EXTENSIONS) | 1315 #endif // defined(ENABLE_EXTENSIONS) |
1315 | 1316 |
1316 } // namespace chrome | 1317 } // namespace chrome |
OLD | NEW |