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

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: Fix test 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 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
150 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_JPG}, 150 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_JPG},
151 #if !BUILDFLAG(USE_VULCANIZE) 151 #if !BUILDFLAG(USE_VULCANIZE)
152 {"app.html", IDR_MD_HISTORY_APP_HTML}, 152 {"app.html", IDR_MD_HISTORY_APP_HTML},
153 {"app.js", IDR_MD_HISTORY_APP_JS}, 153 {"app.js", IDR_MD_HISTORY_APP_JS},
154 {"browser_service.html", IDR_MD_HISTORY_BROWSER_SERVICE_HTML}, 154 {"browser_service.html", IDR_MD_HISTORY_BROWSER_SERVICE_HTML},
155 {"browser_service.js", IDR_MD_HISTORY_BROWSER_SERVICE_JS}, 155 {"browser_service.js", IDR_MD_HISTORY_BROWSER_SERVICE_JS},
156 {"history_item.html", IDR_MD_HISTORY_HISTORY_ITEM_HTML}, 156 {"history_item.html", IDR_MD_HISTORY_HISTORY_ITEM_HTML},
157 {"history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS}, 157 {"history_item.js", IDR_MD_HISTORY_HISTORY_ITEM_JS},
158 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML}, 158 {"history_list.html", IDR_MD_HISTORY_HISTORY_LIST_HTML},
159 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS}, 159 {"history_list.js", IDR_MD_HISTORY_HISTORY_LIST_JS},
160 {"history_list_behavior.html", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_HTML},
161 {"history_list_behavior.js", IDR_MD_HISTORY_HISTORY_LIST_BEHAVIOR_JS},
162 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML}, 160 {"history_toolbar.html", IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML},
163 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS}, 161 {"history_toolbar.js", IDR_MD_HISTORY_HISTORY_TOOLBAR_JS},
164 {"icons.html", IDR_MD_HISTORY_ICONS_HTML}, 162 {"icons.html", IDR_MD_HISTORY_ICONS_HTML},
165 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML}, 163 {"lazy_load.html", IDR_MD_HISTORY_LAZY_LOAD_HTML},
166 {"list_container.html", IDR_MD_HISTORY_LIST_CONTAINER_HTML},
167 {"list_container.js", IDR_MD_HISTORY_LIST_CONTAINER_JS},
168 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML}, 164 {"query_manager.html", IDR_MD_HISTORY_QUERY_MANAGER_HTML},
169 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS}, 165 {"query_manager.js", IDR_MD_HISTORY_QUERY_MANAGER_JS},
170 {"router.html", IDR_MD_HISTORY_ROUTER_HTML}, 166 {"router.html", IDR_MD_HISTORY_ROUTER_HTML},
171 {"router.js", IDR_MD_HISTORY_ROUTER_JS}, 167 {"router.js", IDR_MD_HISTORY_ROUTER_JS},
172 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML}, 168 {"searched_label.html", IDR_MD_HISTORY_SEARCHED_LABEL_HTML},
173 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS}, 169 {"searched_label.js", IDR_MD_HISTORY_SEARCHED_LABEL_JS},
174 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML}, 170 {"shared_style.html", IDR_MD_HISTORY_SHARED_STYLE_HTML},
175 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML}, 171 {"shared_vars.html", IDR_MD_HISTORY_SHARED_VARS_HTML},
176 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML}, 172 {"side_bar.html", IDR_MD_HISTORY_SIDE_BAR_HTML},
177 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS}, 173 {"side_bar.js", IDR_MD_HISTORY_SIDE_BAR_JS},
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 259
264 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost, 260 content::WebUIDataSource::Update(profile, chrome::kChromeUIHistoryHost,
265 std::move(update)); 261 std::move(update));
266 } 262 }
267 263
268 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) { 264 void MdHistoryUI::HandleMenuPromoShown(const base::ListValue* args) {
269 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean( 265 Profile::FromWebUI(web_ui())->GetPrefs()->SetBoolean(
270 prefs::kMdHistoryMenuPromoShown, true); 266 prefs::kMdHistoryMenuPromoShown, true);
271 UpdateDataSource(); 267 UpdateDataSource();
272 } 268 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698