Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(269)

Side by Side Diff: chrome/browser/ui/webui/md_history_ui.cc

Issue 2570253002: [MD History] Fix toolbar dates in grouped mode. (Closed)
Patch Set: use date interval format Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/ui/webui/md_history_ui.h" 5 #include "chrome/browser/ui/webui/md_history_ui.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 "deleteWarning", IDS_HISTORY_DELETE_PRIOR_VISITS_WARNING_NO_INCOGNITO); 72 "deleteWarning", IDS_HISTORY_DELETE_PRIOR_VISITS_WARNING_NO_INCOGNITO);
73 source->AddLocalizedString("entrySummary", IDS_HISTORY_ENTRY_SUMMARY); 73 source->AddLocalizedString("entrySummary", IDS_HISTORY_ENTRY_SUMMARY);
74 source->AddLocalizedString("expandSessionButton", 74 source->AddLocalizedString("expandSessionButton",
75 IDS_HISTORY_OTHER_SESSIONS_EXPAND_SESSION); 75 IDS_HISTORY_OTHER_SESSIONS_EXPAND_SESSION);
76 source->AddLocalizedString("foundSearchResults", 76 source->AddLocalizedString("foundSearchResults",
77 IDS_HISTORY_FOUND_SEARCH_RESULTS); 77 IDS_HISTORY_FOUND_SEARCH_RESULTS);
78 source->AddLocalizedString("hasSyncedResults", 78 source->AddLocalizedString("hasSyncedResults",
79 IDS_MD_HISTORY_HAS_SYNCED_RESULTS); 79 IDS_MD_HISTORY_HAS_SYNCED_RESULTS);
80 source->AddLocalizedString("hasSyncedResultsDescription", 80 source->AddLocalizedString("hasSyncedResultsDescription",
81 IDS_MD_HISTORY_HAS_SYNCED_RESULTS_DESCRIPTION); 81 IDS_MD_HISTORY_HAS_SYNCED_RESULTS_DESCRIPTION);
82 source->AddLocalizedString("historyInterval", IDS_HISTORY_INTERVAL);
83 source->AddLocalizedString("historyMenuButton", 82 source->AddLocalizedString("historyMenuButton",
84 IDS_MD_HISTORY_HISTORY_MENU_DESCRIPTION); 83 IDS_MD_HISTORY_HISTORY_MENU_DESCRIPTION);
85 source->AddLocalizedString("historyMenuItem", 84 source->AddLocalizedString("historyMenuItem",
86 IDS_MD_HISTORY_HISTORY_MENU_ITEM); 85 IDS_MD_HISTORY_HISTORY_MENU_ITEM);
87 source->AddLocalizedString("itemsSelected", IDS_MD_HISTORY_ITEMS_SELECTED); 86 source->AddLocalizedString("itemsSelected", IDS_MD_HISTORY_ITEMS_SELECTED);
88 source->AddLocalizedString("loading", IDS_HISTORY_LOADING); 87 source->AddLocalizedString("loading", IDS_HISTORY_LOADING);
89 source->AddLocalizedString("menuPromo", IDS_MD_HISTORY_MENU_PROMO); 88 source->AddLocalizedString("menuPromo", IDS_MD_HISTORY_MENU_PROMO);
90 source->AddLocalizedString("moreActionsButton", 89 source->AddLocalizedString("moreActionsButton",
91 IDS_HISTORY_ACTION_MENU_DESCRIPTION); 90 IDS_HISTORY_ACTION_MENU_DESCRIPTION);
92 source->AddLocalizedString("moreFromSite", IDS_HISTORY_MORE_FROM_SITE); 91 source->AddLocalizedString("moreFromSite", IDS_HISTORY_MORE_FROM_SITE);
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 268
270 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost, 269 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
271 std::move(update)); 270 std::move(update));
272 } 271 }
273 272
274 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) { 273 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) {
275 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean( 274 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean(
276 prefs::kMdHistoryMenuPromoShown, true); 275 prefs::kMdHistoryMenuPromoShown, true);
277 UpdateDataSource(); 276 UpdateDataSource();
278 } 277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698