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

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: Fix test 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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after
166 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML}, 166 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML},
167 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS}, 167 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS},
168 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML}, 168 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML},
169 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS}, 169 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS},
170 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML}, 170 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML},
171 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS}, 171 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS},
172 {"icons.html", IDR_MD_HISTORY_ICONS_HTML}, 172 {"icons.html", IDR_MD_HISTORY_ICONS_HTML},
173 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML}, 173 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML},
174 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML}, 174 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML},
175 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS}, 175 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS},
176 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML},
177 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS},
176 {"router.html", IDR_MD_HISTORY_ROUTER_HTML}, 178 {"router.html", IDR_MD_HISTORY_ROUTER_HTML},
177 {"router.js", IDR_MD_HISTORY_ROUTER_JS}, 179 {"router.js", IDR_MD_HISTORY_ROUTER_JS},
178 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML}, 180 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML},
179 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS}, 181 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS},
180 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML}, 182 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML},
181 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML}, 183 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML},
182 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML}, 184 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML},
183 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS}, 185 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS},
184 {"synced_device_card.html", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML}, 186 {"synced_device_card.html", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_HTML},
185 {"synced_device_card.js", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS}, 187 {"synced_device_card.js", IDR_MD_HISTORY_SYNCED_DEVICE_CARD_JS},
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
271 273
272 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost, 274 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
273 std::move(update)); 275 std::move(update));
274 } 276 }
275 277
276 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) { 278 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) {
277 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean( 279 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean(
278 prefs::kMdHistoryMenuPromoShown, true); 280 prefs::kMdHistoryMenuPromoShown, true);
279 UpdateDataSource(); 281 UpdateDataSource();
280 } 282 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698