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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc

Issue 2591673002: [NTP::PhysicalWeb] Do not show published time. (Closed)
Patch Set: mvanouwerkerk@ comments. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
index 15f1d02327c898b70d8d97528ad0edf1d90638ea..2d054885a3928868850ec806c085b0a6df2223d0 100644
--- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
+++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
@@ -242,10 +242,7 @@ PhysicalWebPageSuggestionsProvider::GetMostRecentPhysicalWebPagesWithFilter(
ContentSuggestion PhysicalWebPageSuggestionsProvider::ConvertPhysicalWebPage(
const DictionaryValue& page) const {
std::string scanned_url, raw_resolved_url, title, description;
- int scan_timestamp;
bool success = page.GetString(physical_web::kScannedUrlKey, &scanned_url);
- success = page.GetInteger(physical_web::kScanTimestampKey, &scan_timestamp) &&
- success;
success = page.GetString(physical_web::kResolvedUrlKey, &raw_resolved_url) &&
success;
success = page.GetString(physical_web::kTitleKey, &title) && success;
@@ -260,10 +257,6 @@ ContentSuggestion PhysicalWebPageSuggestionsProvider::ConvertPhysicalWebPage(
resolved_url);
DCHECK(base::IsStringUTF8(title));
suggestion.set_title(base::UTF8ToUTF16(title));
- // TODO(vitaliii): Set the time properly once the proper value is provided
- // (see crbug.com/667722).
- suggestion.set_publish_date(
- base::Time::FromTimeT(static_cast<time_t>(scan_timestamp)));
suggestion.set_publisher_name(base::UTF8ToUTF16(resolved_url.host()));
DCHECK(base::IsStringUTF8(description));
suggestion.set_snippet_text(base::UTF8ToUTF16(description));
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/ntp/snippets/SnippetArticleViewHolder.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698