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

Side by Side Diff: chrome/android/java/src/org/chromium/chrome/browser/gsa/GSAState.java

Issue 2130453004: [Sync] Move //sync to //components/sync. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 4 years, 4 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 unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 package org.chromium.chrome.browser.gsa; 5 package org.chromium.chrome.browser.gsa;
6 6
7 import android.accounts.Account; 7 import android.accounts.Account;
8 import android.content.Context; 8 import android.content.Context;
9 import android.content.Intent; 9 import android.content.Intent;
10 import android.content.pm.PackageManager; 10 import android.content.pm.PackageManager;
11 import android.content.pm.ResolveInfo; 11 import android.content.pm.ResolveInfo;
12 import android.text.TextUtils; 12 import android.text.TextUtils;
13 13
14 import org.chromium.base.PackageUtils; 14 import org.chromium.base.PackageUtils;
15 import org.chromium.sync.signin.ChromeSigninController; 15 import org.chromium.components.sync.signin.ChromeSigninController;
16 16
17 import java.util.List; 17 import java.util.List;
18 18
19 /** 19 /**
20 * A class responsible fore representing the current state of Chrome's integrati on with GSA. 20 * A class responsible fore representing the current state of Chrome's integrati on with GSA.
21 */ 21 */
22 public class GSAState { 22 public class GSAState {
23 private static final int GSA_VERSION_FOR_DOCUMENT = 300401021; 23 private static final int GSA_VERSION_FOR_DOCUMENT = 300401021;
24 private static final int GMS_CORE_VERSION = 6577010; 24 private static final int GMS_CORE_VERSION = 6577010;
25 25
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 * Check whether the given package meets min requirements for using full doc ument mode. 119 * Check whether the given package meets min requirements for using full doc ument mode.
120 * @param packageName The package name we are inquiring about. 120 * @param packageName The package name we are inquiring about.
121 * @param minVersion The minimum version for the package to be. 121 * @param minVersion The minimum version for the package to be.
122 * @return Whether the package exists on the device and its version is highe r than the minimum 122 * @return Whether the package exists on the device and its version is highe r than the minimum
123 * required version. 123 * required version.
124 */ 124 */
125 private boolean isPackageAboveVersion(String packageName, int minVersion) { 125 private boolean isPackageAboveVersion(String packageName, int minVersion) {
126 return PackageUtils.getPackageVersion(mContext, packageName) >= minVersi on; 126 return PackageUtils.getPackageVersion(mContext, packageName) >= minVersi on;
127 } 127 }
128 } 128 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698