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

Unified Diff: components/reading_list/reading_list_entry.cc

Issue 2514333003: Componentize Reading List (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
Index: components/reading_list/reading_list_entry.cc
diff --git a/ios/chrome/browser/reading_list/reading_list_entry.cc b/components/reading_list/reading_list_entry.cc
similarity index 97%
rename from ios/chrome/browser/reading_list/reading_list_entry.cc
rename to components/reading_list/reading_list_entry.cc
index b318f084df5c490077ca2cb1cc8e8b4d1f1f6de9..f0401f61343cb1e4e7dbac8b86ac2590b6f66ab9 100644
--- a/ios/chrome/browser/reading_list/reading_list_entry.cc
+++ b/components/reading_list/reading_list_entry.cc
@@ -2,13 +2,13 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "ios/chrome/browser/reading_list/reading_list_entry.h"
+#include "components/reading_list/reading_list_entry.h"
#include "base/json/json_string_value_serializer.h"
#include "base/memory/ptr_util.h"
+#include "components/reading_list/offline_url_utils.h"
+#include "components/reading_list/proto/reading_list.pb.h"
#include "components/sync/protocol/reading_list_specifics.pb.h"
-#include "ios/chrome/browser/reading_list/offline_url_utils.h"
-#include "ios/chrome/browser/reading_list/proto/reading_list.pb.h"
#include "net/base/backoff_entry_serializer.h"
// The backoff time is the following: 10min, 10min, 1h, 2h, 2h..., starting
@@ -112,10 +112,6 @@ const base::FilePath& ReadingListEntry::DistilledPath() const {
return distilled_path_;
}
-const GURL ReadingListEntry::DistilledURL() const {
- return reading_list::DistilledURLForPath(distilled_path_);
-}
-
base::TimeDelta ReadingListEntry::TimeUntilNextTry() const {
return backoff_->GetTimeUntilRelease();
}
« no previous file with comments | « components/reading_list/reading_list_entry.h ('k') | components/reading_list/reading_list_entry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698