Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(961)

Side by Side Diff: chrome/common/chrome_switches.cc

Issue 7762006: Revert 87592 - Re-enable in-browser thumbnailing for Linux and Chrome OS. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698