diff options
| author | wnwen <wnwen@chromium.org> | 2016-02-11 11:26:57 -0800 |
|---|---|---|
| committer | Commit bot <commit-bot@chromium.org> | 2016-02-11 19:28:39 +0000 |
| commit | 25af899dab252d6a9b171b7c7683cbc71e23e1ed (patch) | |
| tree | da3f5f087e71227bfff11f9d3826cd8f53759f9e /components/network_time/network_time_tracker.h | |
| parent | ca6e90a23f96787eb8f953b96beef868cabe4b46 (diff) | |
| download | chromium_src-25af899dab252d6a9b171b7c7683cbc71e23e1ed.zip chromium_src-25af899dab252d6a9b171b7c7683cbc71e23e1ed.tar.gz chromium_src-25af899dab252d6a9b171b7c7683cbc71e23e1ed.tar.bz2 | |
Replace commit() with apply().
When the return value of SharedPreferences commit() is ignored, it is
equivalent to apply() and apply() does not block on I/O. This is very
important on the UI thread. This is also good in AsyncTasks as it
unblocks that thread for other tasks in the same executor.
http://developer.android.com/reference/android/content/SharedPreferences.Editor.html#commit()
BUG=577851
Review URL: https://codereview.chromium.org/1689713002
Cr-Commit-Position: refs/heads/master@{#374917}
Diffstat (limited to 'components/network_time/network_time_tracker.h')
0 files changed, 0 insertions, 0 deletions
