Chromium Code Reviews| Index: mash/quick_launch/quick_launch.cc |
| diff --git a/mash/quick_launch/quick_launch.cc b/mash/quick_launch/quick_launch.cc |
| index dd5bc32a621eacf98acb68c9400ff4dd1e65a357..4346b1d9c2849f70936636e964e6bfccf5b3de9b 100644 |
| --- a/mash/quick_launch/quick_launch.cc |
| +++ b/mash/quick_launch/quick_launch.cc |
| @@ -96,6 +96,9 @@ class QuickLaunchUI : public views::WidgetDelegateView, |
| if (suggestion_rejected_) |
| return; |
| + if (new_contents.length() == 0) |
|
sadrul
2016/11/17 20:32:46
new_contents.empty()
Hadi
2016/11/17 20:44:31
Done.
|
| + return; |
| + |
| // TODO(beng): it'd be nice if we persisted some history/scoring here. |
| for (const auto& name : app_names_) { |
| if (base::StartsWith(name, new_contents, |