Bug 791399: Use the OS tmp dir for saving files on b2g, because content processes can't write elsewhere. r=BenWa
authorChris Jones <jones.chris.g@gmail.com>
Mon, 24 Sep 2012 15:38:07 -0700
changeset 108060 072674dbb5c7fefb95e2a6aa92b5e5c6fecd88b3
parent 108059 74408f5b036afe4821308a6b54e595c3ca5bd142
child 108061 4cf7fbb68148595cd6f87345245a93d8bcb47738
push id82
push usershu@rfrn.org
push dateFri, 05 Oct 2012 13:20:22 +0000
reviewersBenWa
bugs791399
milestone18.0a1
Bug 791399: Use the OS tmp dir for saving files on b2g, because content processes can't write elsewhere. r=BenWa
tools/profiler/TableTicker.cpp
--- a/tools/profiler/TableTicker.cpp
+++ b/tools/profiler/TableTicker.cpp
@@ -476,17 +476,17 @@ public:
     // Pause the profiler during saving.
     // This will prevent us from recording sampling
     // regarding profile saving. This will also
     // prevent bugs caused by the circular buffer not
     // being thread safe. Bug 750989.
     t->SetPaused(true);
 
     // Get file path
-#ifdef ANDROID
+#ifdef MOZ_WIDGET_ANDROID
     nsCString tmpPath;
     tmpPath.AppendPrintf("/sdcard/profile_%i_%i.txt", XRE_GetProcessType(), getpid());
 #else
     nsCOMPtr<nsIFile> tmpFile;
     nsAutoCString tmpPath;
     if (NS_FAILED(NS_GetSpecialDirectory(NS_OS_TEMP_DIR, getter_AddRefs(tmpFile)))) {
       LOG("Failed to find temporary directory.");
       return NS_ERROR_FAILURE;