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

Unified Diff: net/cookies/cookie_constants.cc

Issue 992733002: Remove //net (except for Android test stuff) and sdch (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 9 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 | « net/cookies/cookie_constants.h ('k') | net/cookies/cookie_constants_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/cookies/cookie_constants.cc
diff --git a/net/cookies/cookie_constants.cc b/net/cookies/cookie_constants.cc
deleted file mode 100644
index 0afe6ef85802e88c41692e723d0e63ef7eaf625d..0000000000000000000000000000000000000000
--- a/net/cookies/cookie_constants.cc
+++ /dev/null
@@ -1,46 +0,0 @@
-// Copyright 2013 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 "net/cookies/cookie_constants.h"
-
-#include "base/logging.h"
-#include "base/strings/string_util.h"
-
-namespace net {
-
-namespace {
-const char kPriorityLow[] = "low";
-const char kPriorityMedium[] = "medium";
-const char kPriorityHigh[] = "high";
-} // namespace
-
-NET_EXPORT const std::string CookiePriorityToString(CookiePriority priority) {
- switch(priority) {
- case COOKIE_PRIORITY_HIGH:
- return kPriorityHigh;
- case COOKIE_PRIORITY_MEDIUM:
- return kPriorityMedium;
- case COOKIE_PRIORITY_LOW:
- return kPriorityLow;
- default:
- NOTREACHED();
- }
- return std::string();
-}
-
-NET_EXPORT CookiePriority StringToCookiePriority(const std::string& priority) {
- std::string priority_comp(priority);
- base::StringToLowerASCII(&priority_comp);
-
- if (priority_comp == kPriorityHigh)
- return COOKIE_PRIORITY_HIGH;
- if (priority_comp == kPriorityMedium)
- return COOKIE_PRIORITY_MEDIUM;
- if (priority_comp == kPriorityLow)
- return COOKIE_PRIORITY_LOW;
-
- return COOKIE_PRIORITY_DEFAULT;
-}
-
-} // namespace net
« no previous file with comments | « net/cookies/cookie_constants.h ('k') | net/cookies/cookie_constants_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698