| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/history_ui.h" | 5 #include "chrome/browser/ui/webui/history_ui.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/memory/ref_counted_memory.h" | 8 #include "base/memory/ref_counted_memory.h" |
| 9 #include "base/prefs/pref_service.h" | |
| 10 #include "base/strings/string16.h" | 9 #include "base/strings/string16.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 13 #include "chrome/browser/history/web_history_service_factory.h" | 12 #include "chrome/browser/history/web_history_service_factory.h" |
| 14 #include "chrome/browser/prefs/incognito_mode_prefs.h" | 13 #include "chrome/browser/prefs/incognito_mode_prefs.h" |
| 15 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 16 #include "chrome/browser/signin/signin_manager_factory.h" | 15 #include "chrome/browser/signin/signin_manager_factory.h" |
| 17 #include "chrome/browser/ui/webui/browsing_history_handler.h" | 16 #include "chrome/browser/ui/webui/browsing_history_handler.h" |
| 18 #include "chrome/browser/ui/webui/metrics_handler.h" | 17 #include "chrome/browser/ui/webui/metrics_handler.h" |
| 19 #include "chrome/common/chrome_switches.h" | 18 #include "chrome/common/chrome_switches.h" |
| 20 #include "chrome/common/pref_names.h" | 19 #include "chrome/common/pref_names.h" |
| 21 #include "chrome/common/url_constants.h" | 20 #include "chrome/common/url_constants.h" |
| 22 #include "chrome/grit/generated_resources.h" | 21 #include "chrome/grit/generated_resources.h" |
| 22 #include "components/prefs/pref_service.h" |
| 23 #include "components/search/search.h" | 23 #include "components/search/search.h" |
| 24 #include "components/signin/core/browser/signin_manager.h" | 24 #include "components/signin/core/browser/signin_manager.h" |
| 25 #include "content/public/browser/web_ui.h" | 25 #include "content/public/browser/web_ui.h" |
| 26 #include "content/public/browser/web_ui_data_source.h" | 26 #include "content/public/browser/web_ui_data_source.h" |
| 27 #include "grit/browser_resources.h" | 27 #include "grit/browser_resources.h" |
| 28 #include "grit/components_scaled_resources.h" | 28 #include "grit/components_scaled_resources.h" |
| 29 #include "grit/components_strings.h" | 29 #include "grit/components_strings.h" |
| 30 #include "grit/theme_resources.h" | 30 #include "grit/theme_resources.h" |
| 31 #include "ui/base/l10n/l10n_util.h" | 31 #include "ui/base/l10n/l10n_util.h" |
| 32 #include "ui/base/resource/resource_bundle.h" | 32 #include "ui/base/resource/resource_bundle.h" |
| (...skipping 148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 181 } | 181 } |
| 182 | 182 |
| 183 HistoryUI::~HistoryUI() {} | 183 HistoryUI::~HistoryUI() {} |
| 184 | 184 |
| 185 // static | 185 // static |
| 186 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( | 186 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( |
| 187 ui::ScaleFactor scale_factor) { | 187 ui::ScaleFactor scale_factor) { |
| 188 return ResourceBundle::GetSharedInstance(). | 188 return ResourceBundle::GetSharedInstance(). |
| 189 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); | 189 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); |
| 190 } | 190 } |
| OLD | NEW |