| Index: chrome/browser/ui/webui/history_ui.cc
|
| diff --git a/chrome/browser/ui/webui/history_ui.cc b/chrome/browser/ui/webui/history_ui.cc
|
| index ad89a93c3bbf17059531c57dc25475be6fff8cf6..8585e3fafd30caef3831765fd2f1635264f4a246 100644
|
| --- a/chrome/browser/ui/webui/history_ui.cc
|
| +++ b/chrome/browser/ui/webui/history_ui.cc
|
| @@ -191,10 +191,14 @@ content::WebUIDataSource* CreateHistoryUIHTMLSource(Profile* profile) {
|
| source->AddLocalizedString("entrySummary", IDS_HISTORY_ENTRY_SUMMARY);
|
| source->AddBoolean("isFullHistorySyncEnabled",
|
| WebHistoryServiceFactory::GetForProfile(profile) != NULL);
|
| - source->AddBoolean("groupByDomain",
|
| - profile->IsSupervised() ||
|
| - base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kHistoryEnableGroupByDomain));
|
| + bool group_by_domain = base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kHistoryEnableGroupByDomain);
|
| + // Supervised users get the "group by domain" version, but not on mobile,
|
| + // because that version isn't adjusted for small screens yet. crbug.com/452859
|
| +#if !defined(OS_ANDROID) && !defined(OS_IOS)
|
| + group_by_domain = group_by_domain || profile->IsSupervised();
|
| +#endif
|
| + source->AddBoolean("groupByDomain", group_by_domain);
|
| bool allow_deleting_history =
|
| prefs->GetBoolean(prefs::kAllowDeletingBrowserHistory);
|
| source->AddBoolean("allowDeletingHistory", allow_deleting_history);
|
|
|