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

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

Issue 11187058: Add flag to enable web content to invoke web intents. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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') | chrome/browser/ui/browser.cc » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 944 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 kOsAll, 955 kOsAll,
956 SINGLE_VALUE_TYPE(switches::kDebugPackedApps) 956 SINGLE_VALUE_TYPE(switches::kDebugPackedApps)
957 }, 957 },
958 { 958 {
959 "enable-password-generation", 959 "enable-password-generation",
960 IDS_FLAGS_ENABLE_PASSWORD_GENERATION_NAME, 960 IDS_FLAGS_ENABLE_PASSWORD_GENERATION_NAME,
961 IDS_FLAGS_ENABLE_PASSWORD_GENERATION_DESCRIPTION, 961 IDS_FLAGS_ENABLE_PASSWORD_GENERATION_DESCRIPTION,
962 kOsWin | kOsLinux | kOsCrOS, 962 kOsWin | kOsLinux | kOsCrOS,
963 SINGLE_VALUE_TYPE(switches::kEnablePasswordGeneration) 963 SINGLE_VALUE_TYPE(switches::kEnablePasswordGeneration)
964 }, 964 },
965 {
966 "web-intents-enabled-for-web-content",
James Hawkins 2012/10/18 21:02:08 I think I like --enable-web-intents-invocation bet
Greg Billock 2012/10/18 22:03:02 sounds good to me On 2012/10/18 21:02:08, James H
967 IDS_FLAGS_WEB_INTENTS_ENABLED_FOR_WEB_CONTENT_NAME,
968 IDS_FLAGS_WEB_INTENTS_ENABLED_FOR_WEB_CONTENT_DESCRIPTION,
969 kOsAll,
970 SINGLE_VALUE_TYPE(switches::kWebIntentsEnabledForWebContent)
971 },
965 }; 972 };
966 973
967 const Experiment* experiments = kExperiments; 974 const Experiment* experiments = kExperiments;
968 size_t num_experiments = arraysize(kExperiments); 975 size_t num_experiments = arraysize(kExperiments);
969 976
970 // Stores and encapsulates the little state that about:flags has. 977 // Stores and encapsulates the little state that about:flags has.
971 class FlagsState { 978 class FlagsState {
972 public: 979 public:
973 FlagsState() : needs_restart_(false) {} 980 FlagsState() : needs_restart_(false) {}
974 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line); 981 void ConvertFlagsToSwitches(PrefService* prefs, CommandLine* command_line);
(...skipping 416 matching lines...) Expand 10 before | Expand all | Expand 10 after
1391 } 1398 }
1392 1399
1393 const Experiment* GetExperiments(size_t* count) { 1400 const Experiment* GetExperiments(size_t* count) {
1394 *count = num_experiments; 1401 *count = num_experiments;
1395 return experiments; 1402 return experiments;
1396 } 1403 }
1397 1404
1398 } // namespace testing 1405 } // namespace testing
1399 1406
1400 } // namespace about_flags 1407 } // namespace about_flags
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698