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

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: Review feedback 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 // 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 { 163 {
166 "print-preview", // FLAGS:RECORD_UMA 164 "print-preview", // FLAGS:RECORD_UMA
167 IDS_FLAGS_PRINT_PREVIEW_NAME, 165 IDS_FLAGS_PRINT_PREVIEW_NAME,
168 IDS_FLAGS_PRINT_PREVIEW_DESCRIPTION, 166 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.
169 kOsAll, 171 kOsAll,
172 #else
173 0,
174 #endif
170 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview) 175 SINGLE_VALUE_TYPE(switches::kEnablePrintPreview)
171 }, 176 },
177 {
178 "cloud-print", // FLAGS:RECORD_UMA
179 IDS_FLAGS_CLOUD_PRINT_NAME,
180 IDS_FLAGS_CLOUD_PRINT_DESCRIPTION,
181 // Define this for all platforms except Chrome OS.
182 // It makes no sense to disable it on Chrome OS.
183 kOsMac | kOsWin | kOsLinux,
184 SINGLE_VALUE_TYPE(switches::kEnableCloudPrint)
185 },
172 // TODO(dspringer): When NaCl is on by default, remove this flag entry. 186 // TODO(dspringer): When NaCl is on by default, remove this flag entry.
173 { 187 {
174 "enable-nacl", // FLAGS:RECORD_UMA 188 "enable-nacl", // FLAGS:RECORD_UMA
175 IDS_FLAGS_ENABLE_NACL_NAME, 189 IDS_FLAGS_ENABLE_NACL_NAME,
176 IDS_FLAGS_ENABLE_NACL_DESCRIPTION, 190 IDS_FLAGS_ENABLE_NACL_DESCRIPTION,
177 kOsAll, 191 kOsAll,
178 SINGLE_VALUE_TYPE(switches::kEnableNaCl) 192 SINGLE_VALUE_TYPE(switches::kEnableNaCl)
179 }, 193 },
180 { 194 {
181 "extension-apis", // FLAGS:RECORD_UMA 195 "extension-apis", // FLAGS:RECORD_UMA
(...skipping 616 matching lines...) Expand 10 before | Expand all | Expand 10 after
798 } 812 }
799 813
800 const Experiment* GetExperiments(size_t* count) { 814 const Experiment* GetExperiments(size_t* count) {
801 *count = num_experiments; 815 *count = num_experiments;
802 return experiments; 816 return experiments;
803 } 817 }
804 818
805 } // namespace testing 819 } // namespace testing
806 820
807 } // namespace about_flags 821 } // 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