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

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

Issue 1419103009: [Sync] Componentize ProfileSyncService (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@max_bogue_sync_backend_host
Patch Set: Rebase Created 5 years, 1 month 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 (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 <set> 7 #include <set>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 12 matching lines...) Expand all
23 #include "chrome/browser/banners/app_banner_settings_helper.h" 23 #include "chrome/browser/banners/app_banner_settings_helper.h"
24 #include "chrome/browser/bookmarks/bookmark_model_factory.h" 24 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
25 #include "chrome/browser/chrome_notification_types.h" 25 #include "chrome/browser/chrome_notification_types.h"
26 #include "chrome/browser/engagement/site_engagement_service.h" 26 #include "chrome/browser/engagement/site_engagement_service.h"
27 #include "chrome/browser/history/history_service_factory.h" 27 #include "chrome/browser/history/history_service_factory.h"
28 #include "chrome/browser/history/history_utils.h" 28 #include "chrome/browser/history/history_utils.h"
29 #include "chrome/browser/history/web_history_service_factory.h" 29 #include "chrome/browser/history/web_history_service_factory.h"
30 #include "chrome/browser/prefs/incognito_mode_prefs.h" 30 #include "chrome/browser/prefs/incognito_mode_prefs.h"
31 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/signin/signin_manager_factory.h" 32 #include "chrome/browser/signin/signin_manager_factory.h"
33 #include "chrome/browser/sync/profile_sync_service.h"
34 #include "chrome/browser/sync/profile_sync_service_factory.h" 33 #include "chrome/browser/sync/profile_sync_service_factory.h"
35 #include "chrome/browser/ui/browser_finder.h" 34 #include "chrome/browser/ui/browser_finder.h"
36 #include "chrome/browser/ui/chrome_pages.h" 35 #include "chrome/browser/ui/chrome_pages.h"
37 #include "chrome/browser/ui/webui/favicon_source.h" 36 #include "chrome/browser/ui/webui/favicon_source.h"
38 #include "chrome/browser/ui/webui/metrics_handler.h" 37 #include "chrome/browser/ui/webui/metrics_handler.h"
39 #include "chrome/common/chrome_switches.h" 38 #include "chrome/common/chrome_switches.h"
40 #include "chrome/common/pref_names.h" 39 #include "chrome/common/pref_names.h"
41 #include "chrome/common/url_constants.h" 40 #include "chrome/common/url_constants.h"
42 #include "chrome/grit/generated_resources.h" 41 #include "chrome/grit/generated_resources.h"
43 #include "components/bookmarks/browser/bookmark_model.h" 42 #include "components/bookmarks/browser/bookmark_model.h"
44 #include "components/bookmarks/browser/bookmark_utils.h" 43 #include "components/bookmarks/browser/bookmark_utils.h"
44 #include "components/browser_sync/browser/profile_sync_service.h"
45 #include "components/history/core/browser/history_service.h" 45 #include "components/history/core/browser/history_service.h"
46 #include "components/history/core/browser/history_types.h" 46 #include "components/history/core/browser/history_types.h"
47 #include "components/history/core/browser/web_history_service.h" 47 #include "components/history/core/browser/web_history_service.h"
48 #include "components/search/search.h" 48 #include "components/search/search.h"
49 #include "components/signin/core/browser/signin_manager.h" 49 #include "components/signin/core/browser/signin_manager.h"
50 #include "components/sync_driver/device_info.h" 50 #include "components/sync_driver/device_info.h"
51 #include "components/url_formatter/url_formatter.h" 51 #include "components/url_formatter/url_formatter.h"
52 #include "content/public/browser/url_data_source.h" 52 #include "content/public/browser/url_data_source.h"
53 #include "content/public/browser/web_ui.h" 53 #include "content/public/browser/web_ui.h"
54 #include "content/public/browser/web_ui_data_source.h" 54 #include "content/public/browser/web_ui_data_source.h"
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1057 } 1057 }
1058 1058
1059 HistoryUI::~HistoryUI() {} 1059 HistoryUI::~HistoryUI() {}
1060 1060
1061 // static 1061 // static
1062 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes( 1062 base::RefCountedMemory* HistoryUI::GetFaviconResourceBytes(
1063 ui::ScaleFactor scale_factor) { 1063 ui::ScaleFactor scale_factor) {
1064 return ResourceBundle::GetSharedInstance(). 1064 return ResourceBundle::GetSharedInstance().
1065 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor); 1065 LoadDataResourceBytesForScale(IDR_HISTORY_FAVICON, scale_factor);
1066 } 1066 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/foreign_session_handler.cc ('k') | chrome/browser/ui/webui/ntp/new_tab_page_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698