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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java

Issue 1804213002: [Offline pages] Fixing client ID from bookmark generation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing Created 4 years, 9 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/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java
index dacfa4906b49b37829230ff0a5876535d3545161..dbddbae2d21e8ef85c7868ec4fd677d40ca1c570 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/offlinepages/ClientId.java
@@ -46,6 +46,7 @@ public class ClientId {
* @return A {@link ClientId} that represents this BookmarkId.
*/
public static ClientId createClientIdForBookmarkId(BookmarkId id) {
+ if (id == null) return null;
return new ClientId(OfflinePageBridge.BOOKMARK_NAMESPACE, id.toString());
}
}
« no previous file with comments | « chrome/android/BUILD.gn ('k') | chrome/android/junit/src/org/chromium/chrome/browser/offlinepages/ClientIdTest.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698