diff options
author | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 18:24:19 +0000 |
---|---|---|
committer | rafaelw@chromium.org <rafaelw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-05-12 18:24:19 +0000 |
commit | 893290ab807f68b3968d8437076901bf9bba4567 (patch) | |
tree | e1ac0e8ce9e94aa0edd0558c1672ed9b572b23f2 /chrome/browser/dom_ui | |
parent | 635909faccd2bcabd0999e086a2d10c5b34d8062 (diff) | |
download | chromium_src-893290ab807f68b3968d8437076901bf9bba4567.zip chromium_src-893290ab807f68b3968d8437076901bf9bba4567.tar.gz chromium_src-893290ab807f68b3968d8437076901bf9bba4567.tar.bz2 |
Hide NTP app launcher debug link behind a flag.
Review URL: http://codereview.chromium.org/2061004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@47048 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/dom_ui')
-rw-r--r-- | chrome/browser/dom_ui/app_launcher_handler.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/dom_ui/app_launcher_handler.cc b/chrome/browser/dom_ui/app_launcher_handler.cc index 031686f..8470f6b 100644 --- a/chrome/browser/dom_ui/app_launcher_handler.cc +++ b/chrome/browser/dom_ui/app_launcher_handler.cc @@ -92,10 +92,13 @@ void AppLauncherHandler::HandleGetApps(const Value* value) { switches::kAppLauncherGalleryTitle); gallery_url = CommandLine::ForCurrentProcess()->GetSwitchValueASCII( switches::kAppLauncherGalleryURL); + bool show_debug_link = CommandLine::ForCurrentProcess()->HasSwitch( + switches::kAppsDebug); DictionaryValue dictionary; dictionary.SetString(L"galleryTitle", gallery_title); dictionary.SetString(L"galleryURL", gallery_url); + dictionary.SetBoolean(L"showDebugLink", show_debug_link); ListValue* list = new ListValue(); const ExtensionList* extensions = extensions_service_->extensions(); |