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

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

Issue 6969091: 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, 6 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 1161 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 #else 1172 #else
1173 // Enable print preview (no PDF viewer, thus not supported with Chromium). 1173 // Enable print preview (no PDF viewer, thus not supported with Chromium).
1174 const char kEnablePrintPreview[] = "enable-print-preview"; 1174 const char kEnablePrintPreview[] = "enable-print-preview";
1175 1175
1176 bool IsPrintPreviewEnabled() { 1176 bool IsPrintPreviewEnabled() {
1177 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview); 1177 return CommandLine::ForCurrentProcess()->HasSwitch(kEnablePrintPreview);
1178 } 1178 }
1179 #endif 1179 #endif
1180 1180
1181 bool IsInBrowserThumbnailingEnabled() { 1181 bool IsInBrowserThumbnailingEnabled() {
1182 #if defined(OS_LINUX) || defined(OS_CHROMEOS)
1183 // The in-browser-thumbnailing is enabled for Linux and Chrome OS.
1184 return true;
1185 #else
1182 return CommandLine::ForCurrentProcess()->HasSwitch( 1186 return CommandLine::ForCurrentProcess()->HasSwitch(
1183 kEnableInBrowserThumbnailing); 1187 kEnableInBrowserThumbnailing);
1188 #endif
1184 } 1189 }
1185 1190
1186 // ----------------------------------------------------------------------------- 1191 // -----------------------------------------------------------------------------
1187 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE. 1192 // DO NOT ADD YOUR CRAP TO THE BOTTOM OF THIS FILE.
1188 // 1193 //
1189 // You were going to just dump your switches here, weren't you? Instead, 1194 // You were going to just dump your switches here, weren't you? Instead,
1190 // please put them in alphabetical order above, or in order inside the 1195 // please put them in alphabetical order above, or in order inside the
1191 // appropriate ifdef at the bottom. The order should match the header. 1196 // appropriate ifdef at the bottom. The order should match the header.
1192 // ----------------------------------------------------------------------------- 1197 // -----------------------------------------------------------------------------
1193 1198
1194 } // namespace switches 1199 } // 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