OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/common/chrome_switches.h" | 5 #include "chrome/common/chrome_switches.h" |
6 | 6 |
7 #include "base/base_switches.h" | 7 #include "base/base_switches.h" |
8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
9 | 9 |
10 namespace switches { | 10 namespace switches { |
(...skipping 1214 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 // kDisablePrintPreview overrides this. | 1225 // kDisablePrintPreview overrides this. |
1226 const char kEnablePrintPreview[] = "enable-print-preview"; | 1226 const char kEnablePrintPreview[] = "enable-print-preview"; |
1227 | 1227 |
1228 bool IsPrintPreviewEnabled() { | 1228 bool IsPrintPreviewEnabled() { |
1229 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) | 1229 if (CommandLine::ForCurrentProcess()->HasSwitch(kDisablePrintPreview)) |
1230 return false; | 1230 return false; |
1231 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); | 1231 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); |
1232 } | 1232 } |
1233 | 1233 |
1234 bool IsInBrowserThumbnailingEnabled() { | 1234 bool IsInBrowserThumbnailingEnabled() { |
1235 #if defined(OS_LINUX) || defined(OS_CHROMEOS) | |
1236 // The in-browser-thumbnailing is enabled for Linux and Chrome OS. | |
1237 return true; | |
1238 #else | |
1239 return CommandLine::ForCurrentProcess()->HasSwitch( | 1235 return CommandLine::ForCurrentProcess()->HasSwitch( |
1240 kEnableInBrowserThumbnailing); | 1236 kEnableInBrowserThumbnailing); |
1241 #endif | |
1242 } | 1237 } |
1243 | 1238 |
1244 // ----------------------------------------------------------------------------- | 1239 // ----------------------------------------------------------------------------- |
1245 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. | 1240 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. |
1246 // | 1241 // |
1247 // You were going to just dump your switches here, weren't you? Instead, | 1242 // You were going to just dump your switches here, weren't you? Instead, |
1248 // please put them in alphabetical order above, or in order inside the | 1243 // please put them in alphabetical order above, or in order inside the |
1249 // appropriate ifdef at the bottom. The order should match the header. | 1244 // appropriate ifdef at the bottom. The order should match the header. |
1250 // ----------------------------------------------------------------------------- | 1245 // ----------------------------------------------------------------------------- |
1251 | 1246 |
1252 } // namespace switches | 1247 } // namespace switches |
OLD | NEW |