summaryrefslogtreecommitdiffstats
path: root/sync/internal_api
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 05:15:45 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-10 05:15:45 +0000
commit79f6388902881a0aab426e9606c544b68ab3b9bc (patch)
treedf8da7e82fded47bccf4fe32922a8451a475bf97 /sync/internal_api
parent6d4b67a4b50d73d5001aec99014ac40bc504871a (diff)
downloadchromium_src-79f6388902881a0aab426e9606c544b68ab3b9bc.zip
chromium_src-79f6388902881a0aab426e9606c544b68ab3b9bc.tar.gz
chromium_src-79f6388902881a0aab426e9606c544b68ab3b9bc.tar.bz2
Replace FilePath with base::FilePath in some more top level directories.
Review URL: https://codereview.chromium.org/12217101 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@181640 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'sync/internal_api')
-rw-r--r--sync/internal_api/http_bridge_unittest.cc5
-rw-r--r--sync/internal_api/internal_components_factory_impl.cc2
-rw-r--r--sync/internal_api/public/internal_components_factory.h2
-rw-r--r--sync/internal_api/public/internal_components_factory_impl.h2
-rw-r--r--sync/internal_api/public/sync_manager.h2
-rw-r--r--sync/internal_api/public/test/fake_sync_manager.h2
-rw-r--r--sync/internal_api/public/test/test_internal_components_factory.h2
-rw-r--r--sync/internal_api/sync_manager_impl.cc4
-rw-r--r--sync/internal_api/sync_manager_impl.h4
-rw-r--r--sync/internal_api/test/fake_sync_manager.cc2
-rw-r--r--sync/internal_api/test/test_internal_components_factory.cc2
11 files changed, 15 insertions, 14 deletions
diff --git a/sync/internal_api/http_bridge_unittest.cc b/sync/internal_api/http_bridge_unittest.cc
index a2ff680..2692480 100644
--- a/sync/internal_api/http_bridge_unittest.cc
+++ b/sync/internal_api/http_bridge_unittest.cc
@@ -16,7 +16,8 @@ namespace syncer {
namespace {
// TODO(timsteele): Should use PathService here. See Chromium Issue 3113.
-const FilePath::CharType kDocRoot[] = FILE_PATH_LITERAL("chrome/test/data");
+const base::FilePath::CharType kDocRoot[] =
+ FILE_PATH_LITERAL("chrome/test/data");
}
class SyncHttpBridgeTest : public testing::Test {
@@ -24,7 +25,7 @@ class SyncHttpBridgeTest : public testing::Test {
SyncHttpBridgeTest()
: test_server_(net::TestServer::TYPE_HTTP,
net::TestServer::kLocalhost,
- FilePath(kDocRoot)),
+ base::FilePath(kDocRoot)),
fake_default_request_context_getter_(NULL),
bridge_for_race_test_(NULL),
io_thread_("IO thread") {
diff --git a/sync/internal_api/internal_components_factory_impl.cc b/sync/internal_api/internal_components_factory_impl.cc
index 746d25c..68d4c7b 100644
--- a/sync/internal_api/internal_components_factory_impl.cc
+++ b/sync/internal_api/internal_components_factory_impl.cc
@@ -52,7 +52,7 @@ InternalComponentsFactoryImpl::BuildContext(
scoped_ptr<syncable::DirectoryBackingStore>
InternalComponentsFactoryImpl::BuildDirectoryBackingStore(
- const std::string& dir_name, const FilePath& backing_filepath) {
+ const std::string& dir_name, const base::FilePath& backing_filepath) {
return scoped_ptr<syncable::DirectoryBackingStore>(
new syncable::OnDiskDirectoryBackingStore(dir_name, backing_filepath));
}
diff --git a/sync/internal_api/public/internal_components_factory.h b/sync/internal_api/public/internal_components_factory.h
index 4b31781..520e779 100644
--- a/sync/internal_api/public/internal_components_factory.h
+++ b/sync/internal_api/public/internal_components_factory.h
@@ -81,7 +81,7 @@ class SYNC_EXPORT InternalComponentsFactory {
virtual scoped_ptr<syncable::DirectoryBackingStore>
BuildDirectoryBackingStore(
const std::string& dir_name,
- const FilePath& backing_filepath) = 0;
+ const base::FilePath& backing_filepath) = 0;
// Returns the Switches struct that this object is using as configuration, if
// the implementation is making use of one.
diff --git a/sync/internal_api/public/internal_components_factory_impl.h b/sync/internal_api/public/internal_components_factory_impl.h
index 66b8baa..e69fa3d 100644
--- a/sync/internal_api/public/internal_components_factory_impl.h
+++ b/sync/internal_api/public/internal_components_factory_impl.h
@@ -36,7 +36,7 @@ class SYNC_EXPORT InternalComponentsFactoryImpl
virtual scoped_ptr<syncable::DirectoryBackingStore>
BuildDirectoryBackingStore(
const std::string& dir_name,
- const FilePath& backing_filepath) OVERRIDE;
+ const base::FilePath& backing_filepath) OVERRIDE;
virtual Switches GetSwitches() const OVERRIDE;
diff --git a/sync/internal_api/public/sync_manager.h b/sync/internal_api/public/sync_manager.h
index a614621..7cf57f9 100644
--- a/sync/internal_api/public/sync_manager.h
+++ b/sync/internal_api/public/sync_manager.h
@@ -301,7 +301,7 @@ class SYNC_EXPORT SyncManager {
// TODO(akalin): Replace the |post_factory| parameter with a
// URLFetcher parameter.
virtual void Init(
- const FilePath& database_location,
+ const base::FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
const std::string& sync_server_and_path,
int sync_server_port,
diff --git a/sync/internal_api/public/test/fake_sync_manager.h b/sync/internal_api/public/test/fake_sync_manager.h
index 74aadd7..49c443f 100644
--- a/sync/internal_api/public/test/fake_sync_manager.h
+++ b/sync/internal_api/public/test/fake_sync_manager.h
@@ -70,7 +70,7 @@ class FakeSyncManager : public SyncManager {
// Note: we treat whatever message loop this is called from as the sync
// loop for purposes of callbacks.
virtual void Init(
- const FilePath& database_location,
+ const base::FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
const std::string& sync_server_and_path,
int sync_server_port,
diff --git a/sync/internal_api/public/test/test_internal_components_factory.h b/sync/internal_api/public/test/test_internal_components_factory.h
index d48855b..41420ae 100644
--- a/sync/internal_api/public/test/test_internal_components_factory.h
+++ b/sync/internal_api/public/test/test_internal_components_factory.h
@@ -42,7 +42,7 @@ class TestInternalComponentsFactory : public InternalComponentsFactory {
virtual scoped_ptr<syncable::DirectoryBackingStore>
BuildDirectoryBackingStore(
const std::string& dir_name,
- const FilePath& backing_filepath) OVERRIDE;
+ const base::FilePath& backing_filepath) OVERRIDE;
virtual Switches GetSwitches() const OVERRIDE;
diff --git a/sync/internal_api/sync_manager_impl.cc b/sync/internal_api/sync_manager_impl.cc
index 41ef5b2..cf9e50d 100644
--- a/sync/internal_api/sync_manager_impl.cc
+++ b/sync/internal_api/sync_manager_impl.cc
@@ -331,7 +331,7 @@ void SyncManagerImpl::ConfigureSyncer(
}
void SyncManagerImpl::Init(
- const FilePath& database_location,
+ const base::FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
const std::string& sync_server_and_path,
int port,
@@ -384,7 +384,7 @@ void SyncManagerImpl::Init(
sync_encryption_handler_->AddObserver(&debug_info_event_listener_);
sync_encryption_handler_->AddObserver(&js_sync_encryption_handler_observer_);
- FilePath absolute_db_path(database_path_);
+ base::FilePath absolute_db_path(database_path_);
file_util::AbsolutePath(&absolute_db_path);
scoped_ptr<syncable::DirectoryBackingStore> backing_store =
internal_components_factory->BuildDirectoryBackingStore(
diff --git a/sync/internal_api/sync_manager_impl.h b/sync/internal_api/sync_manager_impl.h
index 75bc930..dff9c4b 100644
--- a/sync/internal_api/sync_manager_impl.h
+++ b/sync/internal_api/sync_manager_impl.h
@@ -64,7 +64,7 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
// SyncManager implementation.
virtual void Init(
- const FilePath& database_location,
+ const base::FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
const std::string& sync_server_and_path,
int sync_server_port,
@@ -290,7 +290,7 @@ class SYNC_EXPORT_PRIVATE SyncManagerImpl :
syncable::Directory* directory();
- FilePath database_path_;
+ base::FilePath database_path_;
const std::string name_;
diff --git a/sync/internal_api/test/fake_sync_manager.cc b/sync/internal_api/test/fake_sync_manager.cc
index 74e7b20..bc9c4dc 100644
--- a/sync/internal_api/test/fake_sync_manager.cc
+++ b/sync/internal_api/test/fake_sync_manager.cc
@@ -86,7 +86,7 @@ void FakeSyncManager::WaitForSyncThread() {
}
void FakeSyncManager::Init(
- const FilePath& database_location,
+ const base::FilePath& database_location,
const WeakHandle<JsEventHandler>& event_handler,
const std::string& sync_server_and_path,
int sync_server_port,
diff --git a/sync/internal_api/test/test_internal_components_factory.cc b/sync/internal_api/test/test_internal_components_factory.cc
index a195609..1fe161aa 100644
--- a/sync/internal_api/test/test_internal_components_factory.cc
+++ b/sync/internal_api/test/test_internal_components_factory.cc
@@ -50,7 +50,7 @@ TestInternalComponentsFactory::BuildContext(
scoped_ptr<syncable::DirectoryBackingStore>
TestInternalComponentsFactory::BuildDirectoryBackingStore(
- const std::string& dir_name, const FilePath& backing_filepath) {
+ const std::string& dir_name, const base::FilePath& backing_filepath) {
switch (storage_option_) {
case STORAGE_IN_MEMORY:
return scoped_ptr<syncable::DirectoryBackingStore>(