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

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

Issue 418223005: Expose the method for getting Tab IDs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/Tab.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
index 4db0aa3208985edfc3e3d9c09925f9e074588cca..cca0ac6dc0fbd114bef15cd4a72ebf978e0122b0 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/Tab.java
@@ -1105,7 +1105,7 @@ public class Tab implements NavigationClient {
* @param id The current id. Maybe {@link #INVALID_TAB_ID}.
* @return A new id if {@code id} was {@link #INVALID_TAB_ID}, or {@code id}.
*/
- private static int generateValidId(int id) {
+ public static int generateValidId(int id) {
David Trainor- moved to gerrit 2014/07/25 07:49:41 Do we need to also support wrapping?
gone 2014/07/25 18:34:37 Turns out the incrementIdCounterTo has far deeper
if (id == INVALID_TAB_ID) id = generateNextId();
incrementIdCounterTo(id + 1);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698