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

Unified Diff: components/cookie_config/cookie_store_util.cc

Issue 1405463006: Componentize CookieOSCryptoDelegate (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: adding OWNERS Created 5 years, 2 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
« no previous file with comments | « components/cookie_config/cookie_store_util.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/cookie_config/cookie_store_util.cc
diff --git a/chrome/browser/net/cookie_store_util.cc b/components/cookie_config/cookie_store_util.cc
similarity index 86%
rename from chrome/browser/net/cookie_store_util.cc
rename to components/cookie_config/cookie_store_util.cc
index d3882ef9ef5b99482a2b1e2f5b4f664ec476c71e..b900ac6757992bc6e1fba15b75bde2152fddf6cb 100644
--- a/chrome/browser/net/cookie_store_util.cc
+++ b/components/cookie_config/cookie_store_util.cc
@@ -2,18 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "chrome/browser/net/cookie_store_util.h"
+#include "components/cookie_config/cookie_store_util.h"
#include "base/lazy_instance.h"
-#include "chrome/browser/browser_process.h"
-#include "chrome/common/chrome_constants.h"
-#include "chrome/common/chrome_switches.h"
#include "components/os_crypt/os_crypt.h"
-#include "content/public/common/content_constants.h"
-#include "extensions/common/constants.h"
#include "net/extras/sqlite/cookie_crypto_delegate.h"
-namespace chrome_browser_net {
+namespace cookie_config {
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
namespace {
@@ -67,10 +62,10 @@ base::LazyInstance<CookieOSCryptoDelegate> g_cookie_crypto_delegate =
net::CookieCryptoDelegate* GetCookieCryptoDelegate() {
return g_cookie_crypto_delegate.Pointer();
}
-#else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
+#else // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
net::CookieCryptoDelegate* GetCookieCryptoDelegate() {
return NULL;
}
#endif // defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX)
-} // namespace chrome_browser_net
+} // namespace cookie_config
« no previous file with comments | « components/cookie_config/cookie_store_util.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698