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

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

Issue 428323002: ifdef remaining extensions code in chrome/browser/browsing_data. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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: chrome/browser/ui/webui/cookies_tree_model_util.cc
diff --git a/chrome/browser/ui/webui/cookies_tree_model_util.cc b/chrome/browser/ui/webui/cookies_tree_model_util.cc
index ff1f6108d9e32824565e4f3566aa9d5927400e3f..bce7c8c915f9ef5d736bb1f365aef8455d4723cc 100644
--- a/chrome/browser/ui/webui/cookies_tree_model_util.cc
+++ b/chrome/browser/ui/webui/cookies_tree_model_util.cc
@@ -15,7 +15,6 @@
#include "base/values.h"
#include "chrome/browser/browsing_data/cookies_tree_model.h"
#include "content/public/browser/indexed_db_context.h"
-#include "extensions/common/extension_set.h"
#include "grit/generated_resources.h"
#include "net/cookies/canonical_cookie.h"
#include "net/ssl/ssl_client_cert_type.h"
@@ -23,6 +22,10 @@
#include "ui/base/text/bytes_formatting.h"
#include "webkit/common/fileapi/file_system_types.h"
+#if defined(ENABLE_EXTENSIONS)
+#include "extensions/common/extension_set.h"
+#endif
+
namespace {
const char kKeyId[] = "id";
@@ -269,6 +272,7 @@ bool CookiesTreeModelUtil::GetCookieTreeNodeDictionary(
break;
}
+#if defined(ENABLE_EXTENSIONS)
const extensions::ExtensionSet* protecting_apps =
node.GetModel()->ExtensionsProtectingNode(node);
if (protecting_apps && !protecting_apps->is_empty()) {
@@ -282,6 +286,7 @@ bool CookiesTreeModelUtil::GetCookieTreeNodeDictionary(
}
dict->Set(kKeyAppsProtectingThis, app_infos);
}
+#endif
return true;
}

Powered by Google App Engine
This is Rietveld 408576698