summaryrefslogtreecommitdiffstats
path: root/chrome/browser/browser_init.h
diff options
context:
space:
mode:
authorviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 18:09:42 +0000
committerviettrungluu@chromium.org <viettrungluu@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-04-01 18:09:42 +0000
commit938e1f9ec9e6e1d267dbff0c9bb50d5952937bc7 (patch)
tree9cdb9a05dcc70199710f399885f737b0642ee211 /chrome/browser/browser_init.h
parent4dcbeb4a725e61ebec6b28162f9a495e64c2a96f (diff)
downloadchromium_src-938e1f9ec9e6e1d267dbff0c9bb50d5952937bc7.zip
chromium_src-938e1f9ec9e6e1d267dbff0c9bb50d5952937bc7.tar.gz
chromium_src-938e1f9ec9e6e1d267dbff0c9bb50d5952937bc7.tar.bz2
Show an infobar when the user is using an unsupported flag.
Patch stolen from Evan and a translatable string added: <http://codereview.chromium.org/490019>. BUG=40113 TEST=Run Chromium with --no-sandbox; should get an infobar warning that you're going to die young. Review URL: http://codereview.chromium.org/1599010 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@43361 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/browser_init.h')
-rw-r--r--chrome/browser/browser_init.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/chrome/browser/browser_init.h b/chrome/browser/browser_init.h
index 2ed6bc7..891c90b 100644
--- a/chrome/browser/browser_init.h
+++ b/chrome/browser/browser_init.h
@@ -167,6 +167,10 @@ class BrowserInit {
// an infobar is added allowing the user to restore the last session.
void AddCrashedInfoBarIfNecessary(TabContents* tab);
+ // If we have been started with unsupported flags like --single-process,
+ // politely nag the user about it.
+ void AddBadFlagsInfoBarIfNecessary(TabContents* tab);
+
// Returns the list of URLs to open from the command line. The returned
// vector is empty if the user didn't specify any URLs on the command line.
std::vector<GURL> GetURLsFromCommandLine(Profile* profile);