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

Side by Side Diff: chrome/browser/ui/webui/favicon_source.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/favicon_source.h" 5 #include "chrome/browser/ui/webui/favicon_source.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
12 #include "chrome/browser/favicon/favicon_service_factory.h" 12 #include "chrome/browser/favicon/favicon_service_factory.h"
13 #include "chrome/browser/history/top_sites_factory.h" 13 #include "chrome/browser/history/top_sites_factory.h"
14 #include "chrome/browser/profiles/profile.h" 14 #include "chrome/browser/profiles/profile.h"
15 #include "chrome/browser/search/instant_io_context.h" 15 #include "chrome/browser/search/instant_io_context.h"
16 #include "chrome/browser/sync/profile_sync_service.h"
17 #include "chrome/browser/sync/profile_sync_service_factory.h" 16 #include "chrome/browser/sync/profile_sync_service_factory.h"
18 #include "chrome/common/url_constants.h" 17 #include "chrome/common/url_constants.h"
19 #include "chrome/grit/locale_settings.h" 18 #include "chrome/grit/locale_settings.h"
19 #include "components/browser_sync/browser/profile_sync_service.h"
20 #include "components/favicon_base/favicon_url_parser.h" 20 #include "components/favicon_base/favicon_url_parser.h"
21 #include "components/history/core/browser/top_sites.h" 21 #include "components/history/core/browser/top_sites.h"
22 #include "components/sync_driver/open_tabs_ui_delegate.h" 22 #include "components/sync_driver/open_tabs_ui_delegate.h"
23 #include "net/url_request/url_request.h" 23 #include "net/url_request/url_request.h"
24 #include "ui/base/l10n/l10n_util.h" 24 #include "ui/base/l10n/l10n_util.h"
25 #include "ui/base/layout.h" 25 #include "ui/base/layout.h"
26 #include "ui/base/resource/resource_bundle.h" 26 #include "ui/base/resource/resource_bundle.h"
27 #include "ui/base/webui/web_ui_util.h" 27 #include "ui/base/webui/web_ui_util.h"
28 #include "ui/resources/grit/ui_resources.h" 28 #include "ui/resources/grit/ui_resources.h"
29 29
(...skipping 172 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 ui::ScaleFactor resource_scale_factor = 202 ui::ScaleFactor resource_scale_factor =
203 ui::GetSupportedScaleFactor(icon_request.device_scale_factor); 203 ui::GetSupportedScaleFactor(icon_request.device_scale_factor);
204 default_favicon = 204 default_favicon =
205 ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale( 205 ResourceBundle::GetSharedInstance().LoadDataResourceBytesForScale(
206 resource_id, resource_scale_factor); 206 resource_id, resource_scale_factor);
207 default_favicons_[favicon_index] = default_favicon; 207 default_favicons_[favicon_index] = default_favicon;
208 } 208 }
209 209
210 icon_request.callback.Run(default_favicon); 210 icon_request.callback.Run(default_favicon);
211 } 211 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/app_launcher_login_handler.cc ('k') | chrome/browser/ui/webui/foreign_session_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698