summaryrefslogtreecommitdiffstats
path: root/sync
diff options
context:
space:
mode:
authoraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 10:09:42 +0000
committeraurimas@chromium.org <aurimas@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-08-08 10:11:26 +0000
commitc00af75b326ff30920d0b69c25ce7c033e7b1904 (patch)
treeb5d09826c41d63d5832e13a42f2c4935220f31b0 /sync
parentd0911fd9cc652edc4e00e2a385ce0f760a330806 (diff)
downloadchromium_src-c00af75b326ff30920d0b69c25ce7c033e7b1904.zip
chromium_src-c00af75b326ff30920d0b69c25ce7c033e7b1904.tar.gz
chromium_src-c00af75b326ff30920d0b69c25ce7c033e7b1904.tar.bz2
[Checkstyle] Update class member variable names to match style guides.
- Non-public, non-static field names start with m. http://source.android.com/source/code-style.html#follow-field-naming-conventions BUG=318404 Review URL: https://codereview.chromium.org/452613002 Cr-Commit-Position: refs/heads/master@{#288299} git-svn-id: svn://svn.chromium.org/chrome/trunk/src@288299 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync')
-rw-r--r--sync/android/java/src/org/chromium/sync/notifier/InvalidationPreferences.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/sync/android/java/src/org/chromium/sync/notifier/InvalidationPreferences.java b/sync/android/java/src/org/chromium/sync/notifier/InvalidationPreferences.java
index feeef03..7917374 100644
--- a/sync/android/java/src/org/chromium/sync/notifier/InvalidationPreferences.java
+++ b/sync/android/java/src/org/chromium/sync/notifier/InvalidationPreferences.java
@@ -40,10 +40,10 @@ public class InvalidationPreferences {
* Used to avoid exposing raw preference objects to users of this class.
*/
public class EditContext {
- private final SharedPreferences.Editor editor;
+ private final SharedPreferences.Editor mEditor;
EditContext() {
- this.editor = PreferenceManager.getDefaultSharedPreferences(mContext).edit();
+ mEditor = PreferenceManager.getDefaultSharedPreferences(mContext).edit();
}
}
@@ -94,7 +94,7 @@ public class InvalidationPreferences {
* NOTE: this method performs blocking I/O and must not be called from the UI thread.
*/
public boolean commit(EditContext editContext) {
- if (!editContext.editor.commit()) {
+ if (!editContext.mEditor.commit()) {
Log.w(TAG, "Failed to commit invalidation preferences");
return false;
}
@@ -111,7 +111,7 @@ public class InvalidationPreferences {
public void setSyncTypes(EditContext editContext, Collection<String> syncTypes) {
Preconditions.checkNotNull(syncTypes);
Set<String> selectedTypesSet = new HashSet<String>(syncTypes);
- editContext.editor.putStringSet(PrefKeys.SYNC_TANGO_TYPES, selectedTypesSet);
+ editContext.mEditor.putStringSet(PrefKeys.SYNC_TANGO_TYPES, selectedTypesSet);
}
/** Returns the saved non-sync object ids, or {@code null} if none exist. */
@@ -139,7 +139,7 @@ public class InvalidationPreferences {
for (ObjectId objectId : objectIds) {
objectIdStrings.add(getObjectIdString(objectId));
}
- editContext.editor.putStringSet(PrefKeys.TANGO_OBJECT_IDS, objectIdStrings);
+ editContext.mEditor.putStringSet(PrefKeys.TANGO_OBJECT_IDS, objectIdStrings);
}
/** Returns the saved account, or {@code null} if none exists. */
@@ -155,8 +155,8 @@ public class InvalidationPreferences {
/** Sets the saved account to {@code account} in {@code editContext}. */
public void setAccount(EditContext editContext, Account account) {
- editContext.editor.putString(PrefKeys.SYNC_ACCT_NAME, account.name);
- editContext.editor.putString(PrefKeys.SYNC_ACCT_TYPE, account.type);
+ editContext.mEditor.putString(PrefKeys.SYNC_ACCT_NAME, account.name);
+ editContext.mEditor.putString(PrefKeys.SYNC_ACCT_TYPE, account.type);
}
/** Returns the notification client internal state. */
@@ -171,7 +171,7 @@ public class InvalidationPreferences {
/** Sets the notification client internal state to {@code state}. */
public void setInternalNotificationClientState(EditContext editContext, byte[] state) {
- editContext.editor.putString(PrefKeys.SYNC_TANGO_INTERNAL_STATE,
+ editContext.mEditor.putString(PrefKeys.SYNC_TANGO_INTERNAL_STATE,
Base64.encodeToString(state, Base64.DEFAULT));
}