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/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 #include "content/public/browser/page_navigator.h" | 65 #include "content/public/browser/page_navigator.h" |
66 #include "content/public/browser/render_view_host.h" | 66 #include "content/public/browser/render_view_host.h" |
67 #include "content/public/browser/user_metrics.h" | 67 #include "content/public/browser/user_metrics.h" |
68 #include "content/public/browser/web_contents.h" | 68 #include "content/public/browser/web_contents.h" |
69 #include "content/public/browser/web_contents_view.h" | 69 #include "content/public/browser/web_contents_view.h" |
70 #include "content/public/common/content_restriction.h" | 70 #include "content/public/common/content_restriction.h" |
71 #include "content/public/common/renderer_preferences.h" | 71 #include "content/public/common/renderer_preferences.h" |
72 #include "content/public/common/url_constants.h" | 72 #include "content/public/common/url_constants.h" |
73 #include "content/public/common/url_utils.h" | 73 #include "content/public/common/url_utils.h" |
74 #include "net/base/escape.h" | 74 #include "net/base/escape.h" |
| 75 #include "webkit/common/user_agent/user_agent_util.h" |
75 #include "webkit/glue/glue_serialize.h" | 76 #include "webkit/glue/glue_serialize.h" |
76 #include "webkit/user_agent/user_agent_util.h" | |
77 | 77 |
78 #if defined(OS_MACOSX) | 78 #if defined(OS_MACOSX) |
79 #include "ui/base/cocoa/find_pasteboard.h" | 79 #include "ui/base/cocoa/find_pasteboard.h" |
80 #endif | 80 #endif |
81 | 81 |
82 #if defined(OS_WIN) | 82 #if defined(OS_WIN) |
83 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" | 83 #include "chrome/browser/ui/metro_pin_tab_helper_win.h" |
84 #include "win8/util/win8_util.h" | 84 #include "win8/util/win8_util.h" |
85 #endif | 85 #endif |
86 | 86 |
(...skipping 1013 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1100 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(), | 1100 Browser::TYPE_POPUP, app_name, gfx::Rect(), browser->profile(), |
1101 browser->host_desktop_type())); | 1101 browser->host_desktop_type())); |
1102 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1102 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1103 | 1103 |
1104 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1104 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1105 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1105 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1106 app_browser->window()->Show(); | 1106 app_browser->window()->Show(); |
1107 } | 1107 } |
1108 | 1108 |
1109 } // namespace chrome | 1109 } // namespace chrome |
OLD | NEW |