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_macros.h" | 8 #include "base/metrics/histogram_macros.h" |
9 #include "base/strings/utf_string_conversions.h" | 9 #include "base/strings/utf_string_conversions.h" |
10 #include "build/build_config.h" | 10 #include "build/build_config.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 #if defined(ENABLE_PRINT_PREVIEW) | 104 #if defined(ENABLE_PRINT_PREVIEW) |
105 #include "chrome/browser/printing/print_preview_dialog_controller.h" | 105 #include "chrome/browser/printing/print_preview_dialog_controller.h" |
106 #endif // defined(ENABLE_PRINT_PREVIEW) | 106 #endif // defined(ENABLE_PRINT_PREVIEW) |
107 #endif // defined(ENABLE_PRINTING) | 107 #endif // defined(ENABLE_PRINTING) |
108 | 108 |
109 #if defined(ENABLE_RLZ) | 109 #if defined(ENABLE_RLZ) |
110 #include "components/rlz/rlz_tracker.h" // nogncheck | 110 #include "components/rlz/rlz_tracker.h" // nogncheck |
111 #endif | 111 #endif |
112 | 112 |
113 #if defined(ENABLE_MEDIA_ROUTER) | 113 #if defined(ENABLE_MEDIA_ROUTER) |
114 #include "chrome/browser/media/router/media_router_dialog_controller.h" | 114 #include "chrome/browser/media/router/media_router_dialog_controller.h" // nogn
check |
115 #endif | 115 #endif |
116 | 116 |
117 namespace { | 117 namespace { |
118 const char kOsOverrideForTabletSite[] = "Linux; Android 4.0.3"; | 118 const char kOsOverrideForTabletSite[] = "Linux; Android 4.0.3"; |
119 } | 119 } |
120 | 120 |
121 using base::UserMetricsAction; | 121 using base::UserMetricsAction; |
122 using bookmarks::BookmarkModel; | 122 using bookmarks::BookmarkModel; |
123 using content::NavigationController; | 123 using content::NavigationController; |
124 using content::NavigationEntry; | 124 using content::NavigationEntry; |
(...skipping 1167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1292 app_name, true /* trusted_source */, gfx::Rect(), browser->profile())); | 1292 app_name, true /* trusted_source */, gfx::Rect(), browser->profile())); |
1293 app_browser->tab_strip_model()->AppendWebContents(contents, true); | 1293 app_browser->tab_strip_model()->AppendWebContents(contents, true); |
1294 | 1294 |
1295 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; | 1295 contents->GetMutableRendererPrefs()->can_accept_load_drops = false; |
1296 contents->GetRenderViewHost()->SyncRendererPrefs(); | 1296 contents->GetRenderViewHost()->SyncRendererPrefs(); |
1297 app_browser->window()->Show(); | 1297 app_browser->window()->Show(); |
1298 } | 1298 } |
1299 #endif // defined(ENABLE_EXTENSIONS) | 1299 #endif // defined(ENABLE_EXTENSIONS) |
1300 | 1300 |
1301 } // namespace chrome | 1301 } // namespace chrome |
OLD | NEW |