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

Unified Diff: chrome/browser/ui/webui/favicon_source.cc

Issue 74653002: sync: Add --enable-sync-sessions-v2 and necessary plumbing to use SessionsSyncManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/favicon_source.cc
diff --git a/chrome/browser/ui/webui/favicon_source.cc b/chrome/browser/ui/webui/favicon_source.cc
index d5744acac3588dec5558197be09d552d9322640a..765b8040db8142c66b91263382fa707bb84982fa 100644
--- a/chrome/browser/ui/webui/favicon_source.cc
+++ b/chrome/browser/ui/webui/favicon_source.cc
@@ -11,7 +11,7 @@
#include "chrome/browser/history/top_sites.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search/instant_io_context.h"
-#include "chrome/browser/sync/glue/session_model_associator.h"
+#include "chrome/browser/sync/open_tabs_ui_delegate.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/common/favicon/favicon_url_parser.h"
@@ -143,13 +143,13 @@ bool FaviconSource::HandleMissingResource(const IconRequest& request) {
// If the favicon is not available, try to use the synced favicon.
ProfileSyncService* sync_service =
ProfileSyncServiceFactory::GetInstance()->GetForProfile(profile_);
- browser_sync::SessionModelAssociator* associator = sync_service ?
- sync_service->GetSessionModelAssociator() : NULL;
+ browser_sync::OpenTabsUIDelegate* open_tabs = sync_service ?
+ sync_service->GetOpenTabsUIDelegate() : NULL;
scoped_refptr<base::RefCountedMemory> response;
- if (associator &&
- associator->GetSyncedFaviconForPageURL(request.request_path.spec(),
- &response)) {
+ if (open_tabs &&
+ open_tabs->GetSyncedFaviconForPageURL(request.request_path.spec(),
+ &response)) {
request.callback.Run(response.get());
return true;
}

Powered by Google App Engine
This is Rietveld 408576698