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

Unified Diff: webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc

Issue 16097005: Fix leak in fileapi::SandboxMountPointProviderTest::GetRootPath (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc
diff --git a/webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc b/webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc
index 41ead3a5b0238c6ec1864678d4c98cf0828426c0..00e8d75e8c0ac0c294d1381a7a5a20bbcff9d629 100644
--- a/webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc
+++ b/webkit/browser/fileapi/sandbox_mount_point_provider_unittest.cc
@@ -110,13 +110,12 @@ class SandboxMountPointProviderTest : public testing::Test {
fileapi::FileSystemType type,
OpenFileSystemMode mode,
base::FilePath* root_path) {
- base::PlatformFileError* error = new base::PlatformFileError(
- base::PLATFORM_FILE_OK);
+ base::PlatformFileError error = base::PLATFORM_FILE_OK;
provider_->OpenFileSystem(
origin_url, type, mode,
- base::Bind(&DidOpenFileSystem, error));
+ base::Bind(&DidOpenFileSystem, &error));
base::MessageLoop::current()->RunUntilIdle();
- if (*error != base::PLATFORM_FILE_OK)
+ if (error != base::PLATFORM_FILE_OK)
return false;
base::FilePath returned_root_path =
provider_->GetBaseDirectoryForOriginAndType(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698