| 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 22f72747000333d05beb94075716f7d634dc2837..4521713224cc7852db281c9936f57b05bb21cac7 100644
|
| --- a/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| +++ b/chrome/browser/ui/webui/ntp/app_launcher_handler.cc
|
| @@ -16,6 +16,7 @@
|
| #include "base/i18n/rtl.h"
|
| #include "base/metrics/field_trial.h"
|
| #include "base/metrics/histogram.h"
|
| +#include "base/strings/string_util.h"
|
| #include "base/strings/utf_string_conversions.h"
|
| #include "base/values.h"
|
| #include "chrome/browser/browser_process.h"
|
| @@ -720,7 +721,8 @@ void AppLauncherHandler::HandleGenerateAppForLink(const base::ListValue* args) {
|
| }
|
|
|
| std::unique_ptr<AppInstallInfo> install_info(new AppInstallInfo());
|
| - install_info->title = title;
|
| + install_info->title = base::CollapseWhitespace(
|
| + title, /* trim_sequences_with_line_breaks */ false);
|
| install_info->app_url = launch_url;
|
| install_info->page_ordinal = page_ordinal;
|
|
|
|
|