Index: chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java b/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java |
similarity index 93% |
rename from chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java |
rename to chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java |
index 85d75fd922083b12dda3c44d994e1d6755a44a66..58f7ddf4950b6d69bab1d3fd6698c72c93e239dc 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/ForeignSessionHelper.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/ntp/ForeignSessionHelper.java |
@@ -2,7 +2,7 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-package org.chromium.chrome.browser; |
+package org.chromium.chrome.browser.ntp; |
import org.chromium.base.CalledByNative; |
import org.chromium.chrome.browser.profiles.Profile; |
@@ -17,7 +17,7 @@ import java.util.List; |
* This class exposes to Java information about sessions, windows, and tabs on the user's synced |
* devices. |
*/ |
-public class ForeignSessionHelper { |
+class ForeignSessionHelper { |
private long mNativeForeignSessionHelper; |
/** |
@@ -122,14 +122,14 @@ public class ForeignSessionHelper { |
* Initialize this class with the given profile. |
* @param profile Profile that will be used for syncing. |
*/ |
- public ForeignSessionHelper(Profile profile) { |
+ ForeignSessionHelper(Profile profile) { |
mNativeForeignSessionHelper = nativeInit(profile); |
} |
/** |
* Clean up the C++ side of this class. After the call, this class instance shouldn't be used. |
*/ |
- public void destroy() { |
+ void destroy() { |
assert mNativeForeignSessionHelper != 0; |
nativeDestroy(mNativeForeignSessionHelper); |
mNativeForeignSessionHelper = 0; |
@@ -138,14 +138,14 @@ public class ForeignSessionHelper { |
/** |
* @return {@code True} iff Tab sync is enabled. |
*/ |
- public boolean isTabSyncEnabled() { |
+ boolean isTabSyncEnabled() { |
return nativeIsTabSyncEnabled(mNativeForeignSessionHelper); |
} |
/** |
* Force a sync for sessions. |
*/ |
- public void triggerSessionSync() { |
+ void triggerSessionSync() { |
nativeTriggerSessionSync(mNativeForeignSessionHelper); |
} |
@@ -153,7 +153,7 @@ public class ForeignSessionHelper { |
* Sets callback instance that will be called on every foreign session sync update. |
* @param callback The callback to be invoked. |
*/ |
- public void setOnForeignSessionCallback(ForeignSessionCallback callback) { |
+ void setOnForeignSessionCallback(ForeignSessionCallback callback) { |
nativeSetOnForeignSessionCallback(mNativeForeignSessionHelper, callback); |
} |
@@ -161,7 +161,7 @@ public class ForeignSessionHelper { |
* @return The list of synced foreign sessions. {@code null} iff it fails to get them for some |
* reason. |
*/ |
- public List<ForeignSession> getForeignSessions() { |
+ List<ForeignSession> getForeignSessions() { |
List<ForeignSession> result = new ArrayList<ForeignSession>(); |
boolean received = nativeGetForeignSessions(mNativeForeignSessionHelper, result); |
if (received) { |
@@ -188,7 +188,7 @@ public class ForeignSessionHelper { |
* @param windowOpenDisposition The WindowOpenDisposition flag. |
* @return {@code True} iff the tab is successfully opened. |
*/ |
- public boolean openForeignSessionTab(Tab tab, ForeignSession session, |
+ boolean openForeignSessionTab(Tab tab, ForeignSession session, |
ForeignSessionTab foreignTab, int windowOpenDisposition) { |
return nativeOpenForeignSessionTab(mNativeForeignSessionHelper, tab, session.tag, |
foreignTab.id, windowOpenDisposition); |
@@ -201,7 +201,7 @@ public class ForeignSessionHelper { |
* the future. |
* @param session Session to be deleted. |
*/ |
- public void deleteForeignSession(ForeignSession session) { |
+ void deleteForeignSession(ForeignSession session) { |
nativeDeleteForeignSession(mNativeForeignSessionHelper, session.tag); |
} |