Chromium Code Reviews| Index: chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
| diff --git a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
| index 1bc7bb4928655fc43da8012a441c600fc4cc1f71..270fbf60372438a115b6e7b9717d1bd1d93e9b44 100644 |
| --- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
| +++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc |
| @@ -10,6 +10,7 @@ |
| #include "base/auto_reset.h" |
| #include "base/bind.h" |
| #include "base/bind_helpers.h" |
| +#include "base/command_line.h" |
| #include "base/i18n/rtl.h" |
| #include "base/metrics/field_trial.h" |
| #include "base/metrics/histogram.h" |
| @@ -38,6 +39,7 @@ |
| #include "chrome/browser/ui/webui/extensions/extension_basic_info.h" |
| #include "chrome/browser/ui/webui/extensions/extension_icon_source.h" |
| #include "chrome/browser/ui/webui/ntp/new_tab_ui.h" |
| +#include "chrome/common/chrome_switches.h" |
| #include "chrome/common/extensions/extension_constants.h" |
| #include "chrome/common/extensions/extension_metrics.h" |
| #include "chrome/common/extensions/manifest_handlers/app_launch_info.h" |
| @@ -116,6 +118,10 @@ void AppLauncherHandler::CreateAppInfo( |
| // Please update it whenever you add or remove any keys here. |
| value->Clear(); |
| + value->SetBoolean( |
|
Peter Kasting
2015/06/24 20:40:56
Nit: Add a comment as to why we bother to communic
frederic.jacob.78
2015/06/24 21:35:03
Done.
|
| + "kioskMode", |
| + base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kKioskMode)); |
| + |
| // The Extension class 'helpfully' wraps bidi control characters that |
| // impede our ability to determine directionality. |
| base::string16 short_name = base::UTF8ToUTF16(extension->short_name()); |