diff options
author | Patrick Scott <phanna@android.com> | 2010-02-19 10:10:10 -0500 |
---|---|---|
committer | Patrick Scott <phanna@android.com> | 2010-02-24 16:12:00 -0500 |
commit | 43914692ad81ec64e5da2dd3e7e3f79b71594eaa (patch) | |
tree | 546d65e97c4957bf9908c4e757a7b8ba3b47cbe4 /src/com/android/browser/BrowserSettings.java | |
parent | dcc5eeb63eadd597587a0b2b49998c267b0bcc11 (diff) | |
download | packages_apps_Browser-43914692ad81ec64e5da2dd3e7e3f79b71594eaa.zip packages_apps_Browser-43914692ad81ec64e5da2dd3e7e3f79b71594eaa.tar.gz packages_apps_Browser-43914692ad81ec64e5da2dd3e7e3f79b71594eaa.tar.bz2 |
Remove our dependency on gsf.
Hardcode the account values when looking up the hosted domain. We also hardcode
the settings uri for looking up the client id. This is the better solution for
now because the client id is written only once. If the partner setup were to
write the value to the BrowserProvider, it would get erased if the user decided
to reset the Browser.
Diffstat (limited to 'src/com/android/browser/BrowserSettings.java')
-rw-r--r-- | src/com/android/browser/BrowserSettings.java | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/com/android/browser/BrowserSettings.java b/src/com/android/browser/BrowserSettings.java index 1e282c6..fbff0fa 100644 --- a/src/com/android/browser/BrowserSettings.java +++ b/src/com/android/browser/BrowserSettings.java @@ -17,8 +17,6 @@ package com.android.browser; -import com.google.android.gsf.GoogleSettingsContract.Partner; - import android.app.ActivityManager; import android.content.ContentResolver; import android.content.Context; @@ -578,8 +576,8 @@ class BrowserSettings extends Observable { private String getFactoryResetHomeUrl(Context context) { String url = context.getResources().getString(R.string.homepage_base); if (url.indexOf("{CID}") != -1) { - url = url.replace("{CID}", Partner.getString(context - .getContentResolver(), Partner.CLIENT_ID, "android-google")); + url = url.replace("{CID}", + BrowserProvider.getClientId(context.getContentResolver())); } return url; } |