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

Side by Side Diff: components/reading_list/ios/offline_url_utils.cc

Issue 2511723002: Enable RL sync by default on iOS (Closed)
Patch Set: rebase Created 4 years 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "components/reading_list/offline_url_utils.h" 5 #include "components/reading_list/ios/offline_url_utils.h"
6 6
7 #include "base/md5.h" 7 #include "base/md5.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 9
10 namespace { 10 namespace {
11 const char kOfflineDirectory[] = "Offline"; 11 const char kOfflineDirectory[] = "Offline";
12 const char kMainPageFileName[] = "page.html"; 12 const char kMainPageFileName[] = "page.html";
13 } // namespace 13 } // namespace
14 14
15 namespace reading_list { 15 namespace reading_list {
(...skipping 16 matching lines...) Expand all
32 const GURL& url) { 32 const GURL& url) {
33 return OfflineRootDirectoryPath(profile_path) 33 return OfflineRootDirectoryPath(profile_path)
34 .Append(OfflineURLDirectoryID(url)); 34 .Append(OfflineURLDirectoryID(url));
35 } 35 }
36 36
37 base::FilePath OfflinePageAbsolutePath(const base::FilePath& profile_path, 37 base::FilePath OfflinePageAbsolutePath(const base::FilePath& profile_path,
38 const GURL& url) { 38 const GURL& url) {
39 return OfflineRootDirectoryPath(profile_path).Append(OfflinePagePath(url)); 39 return OfflineRootDirectoryPath(profile_path).Append(OfflinePagePath(url));
40 } 40 }
41 } 41 }
OLDNEW
« no previous file with comments | « components/reading_list/ios/offline_url_utils.h ('k') | components/reading_list/ios/offline_url_utils_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698