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

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

Issue 7453036: Added flags to expose GCP->print preview integration (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Whitespace 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 | « chrome/app/generated_resources.grd ('k') | 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 #if !defined(GOOGLE_CHROME_BUILD) || defined(OS_CHROMEOS)
Scott Byer 2011/08/22 23:35:50 There's a subtlety here with about flags and sync
Albert Bodenhamer 2011/08/23 01:05:07 Done.
163 // Only expose this for Chromium builds where users may not have the PDF 164 // Only expose this for Chromium builds where users may not have the PDF
164 // plugin. Do not give Google Chrome users the option to disable it here. 165 // plugin. Do not give Google Chrome users the option to disable it here.
166 // Also expose it for Chrome OS where print preview is still experimental.
165 { 167 {
166 "print-preview", // FLAGS:RECORD_UMA 168 "print-preview", // FLAGS:RECORD_UMA
169 IDS_FLAGS_CLOUD_PRINT_NAME,
Scott Byer 2011/08/22 23:35:50 Are the IDS usages backwards between the two flags
Albert Bodenhamer 2011/08/23 01:05:07 Yikes! Good catch. A different logic error was m
170 IDS_FLAGS_CLOUD_PRINT_DESCRIPTION,
171 kOsAll,
172 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview)
173 },
174 #endif
175 #if defined(GOOGLE_CHROME_BUILD) && !defined(OS_CHROMEOS)
176 // Define this for all CHROME builds (since print preview is on there)
177 // except for Chrome OS where cloud print is the only way to print and
178 // we shouldn't let users turn it off.
179 // If this flag is on and print preview is enabled, cloud print will be
180 // enabled in print preview
181 {
182 "cloud-print", // FLAGS:RECORD_UMA
167 IDS_FLAGS_PRINT_PREVIEW_NAME, 183 IDS_FLAGS_PRINT_PREVIEW_NAME,
168 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 184 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION,
169 kOsAll, 185 kOsAll,
170 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) 186 SINGLE_VALUE_TYPE(switches::kEnableCloudPrint)
171 }, 187 },
188 #endif
172 // TODO(dspringer): When NaCl is on by default, remove this flag entry. 189 // TODO(dspringer): When NaCl is on by default, remove this flag entry.
173 { 190 {
174 "enable-nacl", // FLAGS:RECORD_UMA 191 "enable-nacl", // FLAGS:RECORD_UMA
175 IDS_FLAGS_ENABLE_NACL_NAME, 192 IDS_FLAGS_ENABLE_NACL_NAME,
176 IDS_FLAGS_ENABLE_NACL_DESCRIPTION, 193 IDS_FLAGS_ENABLE_NACL_DESCRIPTION,
177 kOsAll, 194 kOsAll,
178 SINGLE_VALUE_TYPE(switches::kEnableNaCl) 195 SINGLE_VALUE_TYPE(switches::kEnableNaCl)
179 }, 196 },
180 { 197 {
181 "extension-apis", // FLAGS:RECORD_UMA 198 "extension-apis", // FLAGS:RECORD_UMA
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 } 815 }
799 816
800 const Experiment* GetExperiments(size_t* count) { 817 const Experiment* GetExperiments(size_t* count) {
801 *count = num_experiments; 818 *count = num_experiments;
802 return experiments; 819 return experiments;
803 } 820 }
804 821
805 } // namespace testing 822 } // namespace testing
806 823
807 } // namespace about_flags 824 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698