From 1f3589a6497142e40dace3cf6f18bf776de46755 Mon Sep 17 00:00:00 2001 From: Michael Comella Date: Mon, 28 Mar 2016 18:41:34 -0700 Subject: [PATCH] Bug 1245493 - Add comments to existing code to clarify them. r=margaret MozReview-Commit-ID: KwOy1KMoPaY --HG-- extra : rebase_source : c91e633f84b5b8444061fd04a34bd6b17b09abd3 --- mobile/android/base/java/org/mozilla/gecko/Tab.java | 2 ++ mobile/android/base/java/org/mozilla/gecko/Tabs.java | 1 + 2 files changed, 3 insertions(+) diff --git a/mobile/android/base/java/org/mozilla/gecko/Tab.java b/mobile/android/base/java/org/mozilla/gecko/Tab.java index cc331affa0e7..8c2b2a563145 100644 --- a/mobile/android/base/java/org/mozilla/gecko/Tab.java +++ b/mobile/android/base/java/org/mozilla/gecko/Tab.java @@ -64,6 +64,8 @@ public class Tab { private SiteLogins mSiteLogins; private BitmapDrawable mThumbnail; private final int mParentId; + // Indicates the url was loaded from a source external to the app. This will be cleared + // when the user explicitly loads a new url (e.g. clicking a link is not explicit). private final boolean mExternal; private boolean mBookmark; private int mFaviconLoadId; diff --git a/mobile/android/base/java/org/mozilla/gecko/Tabs.java b/mobile/android/base/java/org/mozilla/gecko/Tabs.java index 9f53ade29a1b..6c6bb34b0a4e 100644 --- a/mobile/android/base/java/org/mozilla/gecko/Tabs.java +++ b/mobile/android/base/java/org/mozilla/gecko/Tabs.java @@ -63,6 +63,7 @@ public class Tabs implements GeckoEventListener { public static final int LOADURL_DELAY_LOAD = 1 << 4; public static final int LOADURL_DESKTOP = 1 << 5; public static final int LOADURL_BACKGROUND = 1 << 6; + /** Indicates the url has been specified by a source external to the app. */ public static final int LOADURL_EXTERNAL = 1 << 7; private static final long PERSIST_TABS_AFTER_MILLISECONDS = 1000 * 2;