Index: chrome/browser/chromeos/drive/fake_file_system.cc |
diff --git a/chrome/browser/chromeos/drive/fake_file_system.cc b/chrome/browser/chromeos/drive/fake_file_system.cc |
index 415e87dc381acf3b01dfd3007a5f0e57ed544100..427c669e6a88b14f7bdd8f15b8f4710ff8fc2b3c 100644 |
--- a/chrome/browser/chromeos/drive/fake_file_system.cc |
+++ b/chrome/browser/chromeos/drive/fake_file_system.cc |
@@ -18,6 +18,7 @@ |
#include "chrome/browser/google_apis/drive_api_parser.h" |
#include "chrome/browser/google_apis/gdata_wapi_parser.h" |
#include "content/public/browser/browser_thread.h" |
+#include "testing/gtest/include/gtest/gtest.h" |
namespace drive { |
namespace test_util { |
@@ -27,21 +28,12 @@ using content::BrowserThread; |
FakeFileSystem::FakeFileSystem(DriveServiceInterface* drive_service) |
: drive_service_(drive_service), |
weak_ptr_factory_(this) { |
+ CHECK(cache_dir_.CreateUniqueTempDir()); |
} |
FakeFileSystem::~FakeFileSystem() { |
} |
-bool FakeFileSystem::InitializeForTesting() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- return cache_dir_.CreateUniqueTempDir(); |
-} |
- |
-void FakeFileSystem::Initialize() { |
- DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
- InitializeForTesting(); |
-} |
- |
void FakeFileSystem::AddObserver(FileSystemObserver* observer) { |
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
} |