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

Unified Diff: chrome/browser/chromeos/drive/fake_file_system.cc

Issue 23625013: Remove drive::FileSystemInterface::Initialize(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 7 years, 3 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
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));
}
« no previous file with comments | « chrome/browser/chromeos/drive/fake_file_system.h ('k') | chrome/browser/chromeos/drive/fake_file_system_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698