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

Side by Side Diff: chrome/browser/about_flags.cc

Issue 7725006: Print Preview: Fix the entry in about:flags. (Closed) Base URL: svn://chrome-svn/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/browser/about_flags.h" 5 #include "chrome/browser/about_flags.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <iterator> 8 #include <iterator>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
153 kOsAll, 153 kOsAll,
154 SINGLE_VALUE_TYPE(switches::kShowFPSCounter) 154 SINGLE_VALUE_TYPE(switches::kShowFPSCounter)
155 }, 155 },
156 { 156 {
157 "disable-gpu-vsync", 157 "disable-gpu-vsync",
158 IDS_FLAGS_DISABLE_GPU_VSYNC_NAME, 158 IDS_FLAGS_DISABLE_GPU_VSYNC_NAME,
159 IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION, 159 IDS_FLAGS_DISABLE_GPU_VSYNC_DESCRIPTION,
160 kOsAll, 160 kOsAll,
161 SINGLE_VALUE_TYPE(switches::kDisableGpuVsync) 161 SINGLE_VALUE_TYPE(switches::kDisableGpuVsync)
162 }, 162 },
163 // Exposed on all platforms until there is a workaround for easy access to
164 // the native print dialog for users that need it. Once that's done, revert
165 // back to:
166 // Only expose this for Chromium builds where users may not have the PDF
167 // plugin. Do not give Google Chrome users the option to disable it here.
168 // Also expose it for Chrome OS where print preview is still experimental.
163 { 169 {
164 "print-preview", // FLAGS:RECORD_UMA 170 "print-preview", // FLAGS:RECORD_UMA
165 IDS_FLAGS_PRINT_PREVIEW_NAME, 171 IDS_FLAGS_PRINT_PREVIEW_NAME,
166 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 172 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION,
167 #if !defined(GOOGLE_CHROME_BUILD) || defined(OS_CHROMEOS)
168 // Only expose this for Chromium builds where users may not have the PDF
169 // plugin. Do not give Google Chrome users the option to disable it here.
170 // Also expose it for Chrome OS where print preview is still experimental.
171 kOsAll, 173 kOsAll,
172 #else
173 0,
174 #endif
175 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) 174 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview)
176 }, 175 },
177 { 176 {
178 "cloud-print", // FLAGS:RECORD_UMA 177 "cloud-print", // FLAGS:RECORD_UMA
179 IDS_FLAGS_CLOUD_PRINT_NAME, 178 IDS_FLAGS_CLOUD_PRINT_NAME,
180 IDS_FLAGS_CLOUD_PRINT_DESCRIPTION, 179 IDS_FLAGS_CLOUD_PRINT_DESCRIPTION,
181 // Define this for all platforms except Chrome OS. 180 // Define this for all platforms except Chrome OS.
182 // It makes no sense to disable it on Chrome OS. 181 // It makes no sense to disable it on Chrome OS.
183 kOsMac | kOsWin | kOsLinux, 182 kOsMac | kOsWin | kOsLinux,
184 SINGLE_VALUE_TYPE(switches::kEnableCloudPrint) 183 SINGLE_VALUE_TYPE(switches::kEnableCloudPrint)
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after
805 } 804 }
806 805
807 const Experiment* GetExperiments(size_t* count) { 806 const Experiment* GetExperiments(size_t* count) {
808 *count = num_experiments; 807 *count = num_experiments;
809 return experiments; 808 return experiments;
810 } 809 }
811 810
812 } // namespace testing 811 } // namespace testing
813 812
814 } // namespace about_flags 813 } // namespace about_flags
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