summaryrefslogtreecommitdiffstats
path: root/base
diff options
context:
space:
mode:
authorbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 15:46:02 +0000
committerbulach@chromium.org <bulach@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-03-06 15:46:02 +0000
commit2e37465dfebe2b2b39772feee835692bc44f8f92 (patch)
tree632240b8d2284a0c0db68fa6d982d771c8f77e38 /base
parent44cad20cd8d62ea0da43ef0777ffd64e822d118e (diff)
downloadchromium_src-2e37465dfebe2b2b39772feee835692bc44f8f92.zip
chromium_src-2e37465dfebe2b2b39772feee835692bc44f8f92.tar.gz
chromium_src-2e37465dfebe2b2b39772feee835692bc44f8f92.tar.bz2
Android, Fix to allowing IO during atomic file writes
The previous CL (https://codereview.chromium.org/12457007/) gave the variable that allowed IO insufficient scope. This fixes that. BUG=148011 Review URL: https://codereview.chromium.org/12532004 Patch from Anthony Berent <aberent@chromium.org>. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@186441 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base')
-rw-r--r--base/android/important_file_writer_android.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/base/android/important_file_writer_android.cc b/base/android/important_file_writer_android.cc
index 05719ae..bcbd785 100644
--- a/base/android/important_file_writer_android.cc
+++ b/base/android/important_file_writer_android.cc
@@ -20,7 +20,7 @@ static jboolean WriteFileAtomically(JNIEnv* env,
jbyteArray data) {
// This is called on the UI thread during shutdown to save tab data, so
// needs to enable IO.
- base::ThreadRestrictions::ScopedAllowIO();
+ base::ThreadRestrictions::ScopedAllowIO allow_io;
std::string native_file_name;
base::android::ConvertJavaStringToUTF8(env, file_name, &native_file_name);
base::FilePath path(native_file_name);