| OLD | NEW |
| 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/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "build/build_config.h" | 8 #include "build/build_config.h" |
| 9 #include "chrome/browser/profiles/profile.h" | 9 #include "chrome/browser/profiles/profile.h" |
| 10 #include "chrome/browser/signin/signin_manager_factory.h" | 10 #include "chrome/browser/signin/signin_manager_factory.h" |
| (...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 138 source->AddResourcePath("history_toolbar.html", | 138 source->AddResourcePath("history_toolbar.html", |
| 139 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); | 139 IDR_MD_HISTORY_HISTORY_TOOLBAR_HTML); |
| 140 source->AddResourcePath("history_toolbar.js", | 140 source->AddResourcePath("history_toolbar.js", |
| 141 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); | 141 IDR_MD_HISTORY_HISTORY_TOOLBAR_JS); |
| 142 source->AddResourcePath("history.js", IDR_MD_HISTORY_HISTORY_JS); | 142 source->AddResourcePath("history.js", IDR_MD_HISTORY_HISTORY_JS); |
| 143 source->AddResourcePath("icons.html", IDR_MD_HISTORY_ICONS_HTML); | 143 source->AddResourcePath("icons.html", IDR_MD_HISTORY_ICONS_HTML); |
| 144 source->AddResourcePath("images/100/sign_in_promo.png", | 144 source->AddResourcePath("images/100/sign_in_promo.png", |
| 145 IDR_MD_HISTORY_IMAGES_100_SIGN_IN_PROMO_PNG); | 145 IDR_MD_HISTORY_IMAGES_100_SIGN_IN_PROMO_PNG); |
| 146 source->AddResourcePath("images/200/sign_in_promo.png", | 146 source->AddResourcePath("images/200/sign_in_promo.png", |
| 147 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_PNG); | 147 IDR_MD_HISTORY_IMAGES_200_SIGN_IN_PROMO_PNG); |
| 148 source->AddResourcePath("lazy_render.html", |
| 149 IDR_MD_HISTORY_LAZY_RENDER_HTML); |
| 150 source->AddResourcePath("lazy_render.js", |
| 151 IDR_MD_HISTORY_LAZY_RENDER_JS); |
| 148 source->AddResourcePath("list_container.html", | 152 source->AddResourcePath("list_container.html", |
| 149 IDR_MD_HISTORY_LIST_CONTAINER_HTML); | 153 IDR_MD_HISTORY_LIST_CONTAINER_HTML); |
| 150 source->AddResourcePath("list_container.js", | 154 source->AddResourcePath("list_container.js", |
| 151 IDR_MD_HISTORY_LIST_CONTAINER_JS); | 155 IDR_MD_HISTORY_LIST_CONTAINER_JS); |
| 152 source->AddResourcePath("searched_label.html", | 156 source->AddResourcePath("searched_label.html", |
| 153 IDR_MD_HISTORY_SEARCHED_LABEL_HTML); | 157 IDR_MD_HISTORY_SEARCHED_LABEL_HTML); |
| 154 source->AddResourcePath("searched_label.js", | 158 source->AddResourcePath("searched_label.js", |
| 155 IDR_MD_HISTORY_SEARCHED_LABEL_JS); | 159 IDR_MD_HISTORY_SEARCHED_LABEL_JS); |
| 156 source->AddResourcePath("shared_style.html", | 160 source->AddResourcePath("shared_style.html", |
| 157 IDR_MD_HISTORY_SHARED_STYLE_HTML); | 161 IDR_MD_HISTORY_SHARED_STYLE_HTML); |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 base::FeatureList::ClearInstanceForTesting(); | 211 base::FeatureList::ClearInstanceForTesting(); |
| 208 base::FeatureList::SetInstance(std::move(feature_list)); | 212 base::FeatureList::SetInstance(std::move(feature_list)); |
| 209 } | 213 } |
| 210 | 214 |
| 211 // static | 215 // static |
| 212 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( | 216 base::RefCountedMemory* MdHistoryUI::GetFaviconResourceBytes( |
| 213 ui::ScaleFactor scale_factor) { | 217 ui::ScaleFactor scale_factor) { |
| 214 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( | 218 return ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( |
| 215 IDR_HISTORY_FAVICON, scale_factor); | 219 IDR_HISTORY_FAVICON, scale_factor); |
| 216 } | 220 } |
| OLD | NEW |