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

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

Issue 2684693004: MD History: Remove list-container and list-behavior (Closed)
Patch Set: Rename listeners Created 3 years, 10 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 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
148 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_JPG}, 148 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_JPG},
149 #if !BUILDFLAG(USE_VULCANIZE) 149 #if !BUILDFLAG(USE_VULCANIZE)
150 {"app.html", IDR_MD_HISTORY_APP_HTML}, 150 {"app.html", IDR_MD_HISTORY_APP_HTML},
151 {"app.js", IDR_MD_HISTORY_APP_JS}, 151 {"app.js", IDR_MD_HISTORY_APP_JS},
152 {"browser_service.html", IDR_MD_HISTORY_BROWSER_SERVICE_HTML}, 152 {"browser_service.html", IDR_MD_HISTORY_BROWSER_SERVICE_HTML},
153 {"browser_service.js", IDR_MD_HISTORY_BROWSER_SERVICE_JS}, 153 {"browser_service.js", IDR_MD_HISTORY_BROWSER_SERVICE_JS},
154 {"history_item.html", IDR_MD_HISTORY_HISTORY_ITEM_HTML}, 154 {"history_item.html", IDR_MD_HISTORY_HISTORY_ITEM_HTML},
155 {"history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS}, 155 {"history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS},
156 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML}, 156 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML},
157 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS}, 157 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS},
158 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML},
159 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS},
160 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML}, 158 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML},
161 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS}, 159 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS},
162 {"icons.html", IDR_MD_HISTORY_ICONS_HTML}, 160 {"icons.html", IDR_MD_HISTORY_ICONS_HTML},
163 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML}, 161 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML},
164 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML},
165 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS},
166 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML}, 162 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML},
167 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS}, 163 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS},
168 {"router.html", IDR_MD_HISTORY_ROUTER_HTML}, 164 {"router.html", IDR_MD_HISTORY_ROUTER_HTML},
169 {"router.js", IDR_MD_HISTORY_ROUTER_JS}, 165 {"router.js", IDR_MD_HISTORY_ROUTER_JS},
170 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML}, 166 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML},
171 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS}, 167 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS},
172 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML}, 168 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML},
173 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML}, 169 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML},
174 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML}, 170 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML},
175 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS}, 171 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS},
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
255 251
256 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost, 252 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
257 std::move(update)); 253 std::move(update));
258 } 254 }
259 255
260 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) { 256 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) {
261 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean( 257 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean(
262 prefs::kMdHistoryMenuPromoShown, true); 258 prefs::kMdHistoryMenuPromoShown, true);
263 UpdateDataSource(); 259 UpdateDataSource();
264 } 260 }
OLDNEW
« no previous file with comments | « chrome/browser/resources/md_history/list_container.js ('k') | chrome/test/data/webui/md_history/history_item_test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698