OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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 "content/browser/android/content_startup_flags.h" | 5 #include "content/browser/android/content_startup_flags.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/logging.h" | 8 #include "base/logging.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "cc/base/switches.h" | 10 #include "cc/base/switches.h" |
11 #include "content/public/browser/render_process_host.h" | 11 #include "content/public/browser/render_process_host.h" |
12 #include "content/public/common/content_constants.h" | 12 #include "content/public/common/content_constants.h" |
13 #include "content/public/common/content_switches.h" | 13 #include "content/public/common/content_switches.h" |
14 #include "ui/base/ui_base_switches.h" | 14 #include "ui/base/ui_base_switches.h" |
15 | 15 |
16 namespace content { | 16 namespace content { |
17 | 17 |
18 void SetContentCommandLineFlags(int max_render_process_count, | 18 void SetContentCommandLineFlags(int max_render_process_count, |
19 const std::string& plugin_descriptor) { | 19 const std::string& plugin_descriptor) { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
69 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); | 69 parsed_command_line->AppendSwitch(switches::kEnableFixedLayout); |
70 parsed_command_line->AppendSwitch(switches::kEnableViewport); | 70 parsed_command_line->AppendSwitch(switches::kEnableViewport); |
71 | 71 |
72 if (!plugin_descriptor.empty()) { | 72 if (!plugin_descriptor.empty()) { |
73 parsed_command_line->AppendSwitchNative( | 73 parsed_command_line->AppendSwitchNative( |
74 switches::kRegisterPepperPlugins, plugin_descriptor); | 74 switches::kRegisterPepperPlugins, plugin_descriptor); |
75 } | 75 } |
76 } | 76 } |
77 | 77 |
78 } // namespace content | 78 } // namespace content |
OLD | NEW |