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

Unified Diff: components/reading_list/offline_url_utils.cc

Issue 2511723002: Enable RL sync by default on iOS (Closed)
Patch Set: rebase Created 4 years, 1 month 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/reading_list/offline_url_utils.h ('k') | components/reading_list/offline_url_utils_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/reading_list/offline_url_utils.cc
diff --git a/components/reading_list/offline_url_utils.cc b/components/reading_list/offline_url_utils.cc
deleted file mode 100644
index fb028e391aed1d2957da5f85fde8054d5224cd1d..0000000000000000000000000000000000000000
--- a/components/reading_list/offline_url_utils.cc
+++ /dev/null
@@ -1,41 +0,0 @@
-// Copyright 2016 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/reading_list/offline_url_utils.h"
-
-#include "base/md5.h"
-#include "base/strings/stringprintf.h"
-
-namespace {
-const char kOfflineDirectory[] = "Offline";
-const char kMainPageFileName[] = "page.html";
-} // namespace
-
-namespace reading_list {
-
-base::FilePath OfflineRootDirectoryPath(const base::FilePath& profile_path) {
- return profile_path.Append(FILE_PATH_LITERAL(kOfflineDirectory));
-}
-
-std::string OfflineURLDirectoryID(const GURL& url) {
- return base::MD5String(url.spec());
-}
-
-base::FilePath OfflinePagePath(const GURL& url) {
- base::FilePath directory(OfflineURLDirectoryID(url));
- return directory.Append(FILE_PATH_LITERAL(kMainPageFileName));
-}
-
-base::FilePath OfflineURLDirectoryAbsolutePath(
- const base::FilePath& profile_path,
- const GURL& url) {
- return OfflineRootDirectoryPath(profile_path)
- .Append(OfflineURLDirectoryID(url));
-}
-
-base::FilePath OfflinePageAbsolutePath(const base::FilePath& profile_path,
- const GURL& url) {
- return OfflineRootDirectoryPath(profile_path).Append(OfflinePagePath(url));
-}
-}
« no previous file with comments | « components/reading_list/offline_url_utils.h ('k') | components/reading_list/offline_url_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698