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

Unified Diff: components/favicon/content/content_favicon_driver.cc

Issue 227153007: Remove dependency on Profile's IsOffTheRecord in favicon_handler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@FAVICON_create_core_dir
Patch Set: Created 6 years, 8 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 side-by-side diff with in-line comments
Download patch
Index: components/favicon/content/content_favicon_driver.cc
diff --git a/components/favicon/content/content_favicon_driver.cc b/components/favicon/content/content_favicon_driver.cc
new file mode 100644
index 0000000000000000000000000000000000000000..22c9cda80e1f98a2df61d5d9b75018fb58607517
--- /dev/null
+++ b/components/favicon/content/content_favicon_driver.cc
@@ -0,0 +1,20 @@
+// 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 "components/favicon/content/content_favicon_driver.h"
+
+#include "content/public/browser/browser_context.h"
+#include "content/public/browser/web_contents.h"
+
+ContentFaviconDriver::ContentFaviconDriver(content::WebContents* web_contents)
+ : WebContentsObserver(web_contents) {
+ DCHECK(web_contents);
+}
+
+ContentFaviconDriver::~ContentFaviconDriver() {}
+
+bool ContentFaviconDriver::IsOffTheRecord() {
+ DCHECK(web_contents());
+ return web_contents()->GetBrowserContext()->IsOffTheRecord();
+}

Powered by Google App Engine
This is Rietveld 408576698