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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.cc

Issue 2663183002: [NTP::Cleanup] Store tab id as int in SnippetArticle. (Closed)
Patch Set: clean rebase. Created 3 years, 11 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
Index: chrome/browser/android/ntp/ntp_snippets_bridge.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.cc b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
index 3bc97fa3c030a85f12eb2410b109d423fea1a917..c275945b92676605c818e9a549af5b97050ef5c5 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -87,8 +87,7 @@ ScopedJavaLocalRef<jobject> ToJavaSuggestionList(
suggestion.recent_tab_suggestion_extra() != nullptr) {
Java_SnippetsBridge_setRecentTabDataForSuggestion(
env, java_suggestion,
- ConvertUTF8ToJavaString(
- env, suggestion.recent_tab_suggestion_extra()->tab_id),
+ suggestion.recent_tab_suggestion_extra()->tab_id,
suggestion.recent_tab_suggestion_extra()->offline_page_id);
}
}

Powered by Google App Engine
This is Rietveld 408576698