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

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

Issue 2359003004: Disable ACTION_BOOT_COMPLETED event for 3rd party apps. (Closed)
Patch Set: Remove _arc_ in some variables and comments Created 4 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
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 <iterator> 7 #include <iterator>
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <utility> 10 #include <utility>
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 #include "ui/views/views_switches.h" 83 #include "ui/views/views_switches.h"
84 84
85 #if defined(OS_ANDROID) 85 #if defined(OS_ANDROID)
86 #include "chrome/browser/android/chrome_feature_list.h" 86 #include "chrome/browser/android/chrome_feature_list.h"
87 #else 87 #else
88 #include "ui/message_center/message_center_switches.h" 88 #include "ui/message_center/message_center_switches.h"
89 #endif 89 #endif
90 90
91 #if defined(OS_CHROMEOS) 91 #if defined(OS_CHROMEOS)
92 #include "chromeos/chromeos_switches.h" 92 #include "chromeos/chromeos_switches.h"
93 #include "components/arc/arc_features.h"
93 #include "third_party/cros_system_api/switches/chrome_switches.h" 94 #include "third_party/cros_system_api/switches/chrome_switches.h"
94 #endif 95 #endif
95 96
96 #if defined(OS_MACOSX) 97 #if defined(OS_MACOSX)
97 #include "chrome/browser/ui/browser_dialogs.h" 98 #include "chrome/browser/ui/browser_dialogs.h"
98 #endif 99 #endif
99 100
100 #if defined(ENABLE_APP_LIST) 101 #if defined(ENABLE_APP_LIST)
101 #include "ui/app_list/app_list_switches.h" 102 #include "ui/app_list/app_list_switches.h"
102 #endif 103 #endif
(...skipping 1992 matching lines...) Expand 10 before | Expand all | Expand 10 after
2095 {"arc-use-auth-endpoint", IDS_FLAGS_ARC_USE_AUTH_ENDPOINT_NAME, 2096 {"arc-use-auth-endpoint", IDS_FLAGS_ARC_USE_AUTH_ENDPOINT_NAME,
2096 IDS_FLAGS_ARC_USE_AUTH_ENDPOINT_DESCRIPTION, kOsCrOS, 2097 IDS_FLAGS_ARC_USE_AUTH_ENDPOINT_DESCRIPTION, kOsCrOS,
2097 SINGLE_VALUE_TYPE_AND_VALUE( 2098 SINGLE_VALUE_TYPE_AND_VALUE(
2098 chromeos::switches::kArcUseAuthEndpoint, 2099 chromeos::switches::kArcUseAuthEndpoint,
2099 "https://www-googleapis-staging.sandbox.google.com/oauth2/v4/" 2100 "https://www-googleapis-staging.sandbox.google.com/oauth2/v4/"
2100 "ExchangeToken")}, 2101 "ExchangeToken")},
2101 #endif 2102 #endif
2102 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME, 2103 {"material-security-verbose", IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_NAME,
2103 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop, 2104 IDS_FLAGS_MATERIAL_SECURITY_VERBOSE_DESCRIPTION, kOsDesktop,
2104 MULTI_VALUE_TYPE(kSecurityVerboseChoices)}, 2105 MULTI_VALUE_TYPE(kSecurityVerboseChoices)},
2106 #if defined(OS_CHROMEOS)
2107 {"arc-boot-completed-broadcast",
2108 IDS_FLAGS_ARC_BOOT_COMPLETED,
2109 IDS_FLAGS_ARC_BOOT_COMPLETED_DESCRIPTION, kOsCrOS,
2110 FEATURE_VALUE_TYPE(arc::kBootCompletedBroadcastFeature)},
2111 #endif
2105 // NOTE: Adding new command-line switches requires adding corresponding 2112 // NOTE: Adding new command-line switches requires adding corresponding
2106 // entries to enum "LoginCustomFlags" in histograms.xml. See note in 2113 // entries to enum "LoginCustomFlags" in histograms.xml. See note in
2107 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test. 2114 // histograms.xml and don't forget to run AboutFlagsHistogramTest unit test.
2108 }; 2115 };
2109 2116
2110 class FlagsStateSingleton { 2117 class FlagsStateSingleton {
2111 public: 2118 public:
2112 FlagsStateSingleton() 2119 FlagsStateSingleton()
2113 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {} 2120 : flags_state_(kFeatureEntries, arraysize(kFeatureEntries)) {}
2114 ~FlagsStateSingleton() {} 2121 ~FlagsStateSingleton() {}
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
2303 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0; 2310 const base::HistogramBase::Sample kBadSwitchFormatHistogramId = 0;
2304 2311
2305 const FeatureEntry* GetFeatureEntries(size_t* count) { 2312 const FeatureEntry* GetFeatureEntries(size_t* count) {
2306 *count = arraysize(kFeatureEntries); 2313 *count = arraysize(kFeatureEntries);
2307 return kFeatureEntries; 2314 return kFeatureEntries;
2308 } 2315 }
2309 2316
2310 } // namespace testing 2317 } // namespace testing
2311 2318
2312 } // namespace about_flags 2319 } // namespace about_flags
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698