Index: chrome/browser/favicon/chrome_favicon_client.cc |
diff --git a/chrome/browser/favicon/chrome_favicon_client.cc b/chrome/browser/favicon/chrome_favicon_client.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..68bc7d9c596112e30c5ef045185a7b0947e3b445 |
--- /dev/null |
+++ b/chrome/browser/favicon/chrome_favicon_client.cc |
@@ -0,0 +1,27 @@ |
+// Copyright 2014 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#include "chrome/browser/favicon/chrome_favicon_client.h" |
+ |
+#include "chrome/browser/bookmarks/bookmark_model_factory.h" |
+#include "chrome/browser/favicon/favicon_service_factory.h" |
+#include "components/bookmarks/browser/bookmark_model.h" |
+ |
+class Profile; |
+ |
+ChromeFaviconClient::ChromeFaviconClient(Profile* profile) : profile_(profile) { |
+} |
+ |
+ChromeFaviconClient::~ChromeFaviconClient() { |
+} |
+ |
+FaviconService* ChromeFaviconClient::GetFaviconService() { |
+ return FaviconServiceFactory::GetForProfile(profile_, |
+ Profile::EXPLICIT_ACCESS); |
+} |
+ |
+bool ChromeFaviconClient::IsBookmarked(const GURL& url) { |
+ BookmarkModel* bookmark_model = BookmarkModelFactory::GetForProfile(profile_); |
+ return bookmark_model && bookmark_model->IsBookmarked(url); |
+} |