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

Unified Diff: chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java

Issue 2124583003: Replace Shared Prefs commit with apply. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and fix merge conflict. Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
Index: chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java
diff --git a/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java b/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java
index 57b78cdb2a09cc33dacade8233eaae29dd58d3e8..57cdb71e720bcfdbb207a600ebbf5b0161222dba 100644
--- a/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java
+++ b/chrome/android/junit/src/org/chromium/chrome/browser/ChromeBackupAgentTest.java
@@ -93,7 +93,7 @@ public class ChromeBackupAgentTest {
editor.putBoolean("crash_dump_upload", false);
editor.putString("google.services.username", "user1");
editor.putString("junk", "junk");
- editor.commit();
+ editor.apply();
String chromeInputPrefs =
"{\"junk1\":\"abc\", "
@@ -128,7 +128,7 @@ public class ChromeBackupAgentTest {
SharedPreferences.Editor editor = sharedPrefs.edit();
editor.putBoolean("crash_dump_upload", false);
editor.putString("junk", "junk");
- editor.commit();
+ editor.apply();
String chromeInputPrefs =
"{\"junk1\":\"abc\", "
@@ -158,7 +158,7 @@ public class ChromeBackupAgentTest {
editor.putBoolean("crash_dump_upload", false);
editor.putString("google.services.username", "wrong_user");
editor.putString("junk", "junk");
- editor.commit();
+ editor.apply();
String chromeInputPrefs =
"{\"junk1\":\"abc\", "

Powered by Google App Engine
This is Rietveld 408576698