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

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

Issue 2590093002: MD History: Move queryState to be managed by history-router (Closed)
Patch Set: Rebase 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/memory/ptr_util.h" 10 #include "base/memory/ptr_util.h"
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
165 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML}, 165 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML},
166 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS}, 166 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS},
167 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML}, 167 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML},
168 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS}, 168 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS},
169 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML}, 169 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML},
170 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS}, 170 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS},
171 {"icons.html", IDR_MD_HISTORY_ICONS_HTML}, 171 {"icons.html", IDR_MD_HISTORY_ICONS_HTML},
172 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML}, 172 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML},
173 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML}, 173 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML},
174 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS}, 174 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS},
175 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML},
176 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS},
175 {"router.html", IDR_MD_HISTORY_ROUTER_HTML}, 177 {"router.html", IDR_MD_HISTORY_ROUTER_HTML},
176 {"router.js", IDR_MD_HISTORY_ROUTER_JS}, 178 {"router.js", IDR_MD_HISTORY_ROUTER_JS},
177 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML}, 179 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML},
178 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS}, 180 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS},
179 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML}, 181 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML},
180 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML}, 182 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML},
181 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML}, 183 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML},
182 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS}, 184 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS},
183 {"synced_device_card.html", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML}, 185 {"synced_device_card.html", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML},
184 {"synced_device_card.js", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS}, 186 {"synced_device_card.js", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS},
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 272
271 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost, 273 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
272 std::move(update)); 274 std::move(update));
273 } 275 }
274 276
275 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) { 277 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) {
276 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean( 278 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean(
277 prefs::kMdHistoryMenuPromoShown, true); 279 prefs::kMdHistoryMenuPromoShown, true);
278 UpdateDataSource(); 280 UpdateDataSource();
279 } 281 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/router.js ('k') | chrome/test/data/webui/md_history/history_list_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698