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

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

Issue 591043002: Remove enable-speech-dispatcher flag (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « chrome/browser/speech/tts_linux.cc ('k') | content/public/common/content_switches.h » ('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/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 "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 switches::kReduceSecurityForTesting, 61 switches::kReduceSecurityForTesting,
62 invalidation::switches::kSyncAllowInsecureXmppConnection, 62 invalidation::switches::kSyncAllowInsecureXmppConnection,
63 63
64 // These flags change the URLs that handle PII. 64 // These flags change the URLs that handle PII.
65 autofill::switches::kWalletSecureServiceUrl, 65 autofill::switches::kWalletSecureServiceUrl,
66 switches::kGaiaUrl, 66 switches::kGaiaUrl,
67 translate::switches::kTranslateScriptURL, 67 translate::switches::kTranslateScriptURL,
68 68
69 // This flag gives extensions more powers. 69 // This flag gives extensions more powers.
70 extensions::switches::kExtensionsOnChromeURLs, 70 extensions::switches::kExtensionsOnChromeURLs,
71
72 #if defined(OS_LINUX) && !defined(OS_CHROMEOS)
73 // Speech dispatcher is buggy, it can crash and it can make Chrome freeze.
74 // http://crbug.com/327295
75 switches::kEnableSpeechDispatcher,
76 #endif
77 NULL 71 NULL
78 }; 72 };
79 73
80 for (const char** flag = kBadFlags; *flag; ++flag) { 74 for (const char** flag = kBadFlags; *flag; ++flag) {
81 if (CommandLine::ForCurrentProcess()->HasSwitch(*flag)) { 75 if (CommandLine::ForCurrentProcess()->HasSwitch(*flag)) {
82 SimpleAlertInfoBarDelegate::Create( 76 SimpleAlertInfoBarDelegate::Create(
83 InfoBarService::FromWebContents(web_contents), 77 InfoBarService::FromWebContents(web_contents),
84 infobars::InfoBarDelegate::kNoIconID, 78 infobars::InfoBarDelegate::kNoIconID,
85 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE, 79 l10n_util::GetStringFUTF16(IDS_BAD_FLAGS_WARNING_MESSAGE,
86 base::UTF8ToUTF16( 80 base::UTF8ToUTF16(
(...skipping 30 matching lines...) Expand all
117 user_data_dir.LossyDisplayName()); 111 user_data_dir.LossyDisplayName());
118 112
119 if (cleanup_resource_bundle) 113 if (cleanup_resource_bundle)
120 ResourceBundle::CleanupSharedInstance(); 114 ResourceBundle::CleanupSharedInstance();
121 115
122 // More complex dialogs cannot be shown before the earliest calls here. 116 // More complex dialogs cannot be shown before the earliest calls here.
123 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING); 117 ShowMessageBox(NULL, title, message, chrome::MESSAGE_BOX_TYPE_WARNING);
124 } 118 }
125 119
126 } // namespace chrome 120 } // namespace chrome
OLDNEW
« no previous file with comments | « chrome/browser/speech/tts_linux.cc ('k') | content/public/common/content_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698