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

Side by Side Diff: chrome/browser/ui/startup/bad_flags_prompt.cc

Issue 2192573002: bluetooth: Remove Web Bluetooth from Bad Flags Prompt. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
« 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) 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/ui/startup/bad_flags_prompt.h" 5 #include "chrome/browser/ui/startup/bad_flags_prompt.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 80
81 // These flags control Blink feature state, which is not supported and is 81 // These flags control Blink feature state, which is not supported and is
82 // intended only for use by Chromium developers. 82 // intended only for use by Chromium developers.
83 switches::kDisableBlinkFeatures, 83 switches::kDisableBlinkFeatures,
84 switches::kEnableBlinkFeatures, 84 switches::kEnableBlinkFeatures,
85 85
86 // This flag allows people to whitelist certain origins as secure, even 86 // This flag allows people to whitelist certain origins as secure, even
87 // if they are not. 87 // if they are not.
88 switches::kUnsafelyTreatInsecureOriginAsSecure, 88 switches::kUnsafelyTreatInsecureOriginAsSecure,
89 89
90 // This flag enables Web Bluetooth. Since the UI for Web Bluetooth is
91 // not yet implemented, websites could take control over paired devices
92 // without the users knowledge, so we need to show a warning for when
93 // the flag is enabled.
94 switches::kEnableWebBluetooth,
95
96 // This flag disables WebUSB's CORS-like checks for origin to device 90 // This flag disables WebUSB's CORS-like checks for origin to device
97 // communication, allowing any origin to ask the user for permission to 91 // communication, allowing any origin to ask the user for permission to
98 // connect to a device. It is intended for manufacturers testing their 92 // connect to a device. It is intended for manufacturers testing their
99 // existing devices until https://crbug.com/598766 is implemented. 93 // existing devices until https://crbug.com/598766 is implemented.
100 switches::kDisableWebUsbSecurity, 94 switches::kDisableWebUsbSecurity,
101 95
102 NULL 96 NULL
103 }; 97 };
104 98
105 for (const char** flag = kBadFlags; *flag; ++flag) { 99 for (const char** flag = kBadFlags; *flag; ++flag) {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 user_data_dir.LossyDisplayName()); 138 user_data_dir.LossyDisplayName());
145 139
146 if (cleanup_resource_bundle) 140 if (cleanup_resource_bundle)
147 ResourceBundle::CleanupSharedInstance(); 141 ResourceBundle::CleanupSharedInstance();
148 142
149 // More complex dialogs cannot be shown before the earliest calls here. 143 // More complex dialogs cannot be shown before the earliest calls here.
150 ShowWarningMessageBox(NULL, title, message); 144 ShowWarningMessageBox(NULL, title, message);
151 } 145 }
152 146
153 } // namespace chrome 147 } // namespace chrome
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