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

Side by Side Diff: chrome/browser/favicon/chrome_favicon_client.cc

Issue 303453004: Move the FaviconClient implementation to ChromeFaviconClient. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed include. Created 6 years, 7 months 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
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "chrome/browser/favicon/chrome_favicon_client.h"
6
7 #include "chrome/browser/bookmarks/bookmark_model_factory.h"
8 #include "chrome/browser/favicon/favicon_service_factory.h"
9 #include "components/bookmarks/browser/bookmark_model.h"
10
11 class Profile;
12
13 ChromeFaviconClient::ChromeFaviconClient(Profile* profile) : profile_(profile) {
14 }
15
16 ChromeFaviconClient::~ChromeFaviconClient() {
17 }
18
19 FaviconService* ChromeFaviconClient::GetFaviconService() {
20 return FaviconServiceFactory::GetForProfile(profile_,
21 Profile::EXPLICIT_ACCESS);
22 }
23
24 bool ChromeFaviconClient::IsBookmarked(const GURL& url) {
25 BookmarkModel* bookmark_model = BookmarkModelFactory::GetForProfile(profile_);
26 return bookmark_model && bookmark_model->IsBookmarked(url);
27 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698