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

Unified Diff: chrome/browser/sync_file_system/subtree_set.cc

Issue 492873002: Collapse fileapi, webkit_blob, webkit_database, quota, and webkit_common namespaces into single sto… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix chromeos build Created 6 years, 4 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/sync_file_system/subtree_set.cc
diff --git a/chrome/browser/sync_file_system/subtree_set.cc b/chrome/browser/sync_file_system/subtree_set.cc
index ab71dbb4bb7f3a1659dc1701fa78bad7ea2b8b7b..51e4816107f38624e4a3e9eade5d86161085ef06 100644
--- a/chrome/browser/sync_file_system/subtree_set.cc
+++ b/chrome/browser/sync_file_system/subtree_set.cc
@@ -26,7 +26,7 @@ SubtreeSet::~SubtreeSet() {}
bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
// Check if |subtree_root| contains any of subtrees in the container.
if (ContainsKey(inclusive_ancestors_of_subtree_roots_,
@@ -34,8 +34,8 @@ bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
return false;
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
Subtrees::const_iterator found =
inclusive_ancestors_of_subtree_roots_.find(path.value());
@@ -48,7 +48,7 @@ bool SubtreeSet::IsDisjointWith(const base::FilePath& subtree_root) const {
bool SubtreeSet::insert(const base::FilePath& subtree_root) {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
if (!IsDisjointWith(subtree_root))
return false;
@@ -56,8 +56,8 @@ bool SubtreeSet::insert(const base::FilePath& subtree_root) {
= Node(true, 1);
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
DCHECK(!inclusive_ancestors_of_subtree_roots_[path.value()]
.contained_as_subtree_root);
++(inclusive_ancestors_of_subtree_roots_[path.value()]
@@ -69,7 +69,7 @@ bool SubtreeSet::insert(const base::FilePath& subtree_root) {
bool SubtreeSet::erase(const base::FilePath& subtree_root) {
base::FilePath::StringType normalized_subtree_root =
- fileapi::VirtualPath::GetNormalizedFilePath(subtree_root);
+ storage::VirtualPath::GetNormalizedFilePath(subtree_root);
{
Subtrees::iterator found =
@@ -83,8 +83,8 @@ bool SubtreeSet::erase(const base::FilePath& subtree_root) {
}
base::FilePath path(normalized_subtree_root);
- while (!fileapi::VirtualPath::IsRootPath(path)) {
- path = fileapi::VirtualPath::DirName(path);
+ while (!storage::VirtualPath::IsRootPath(path)) {
+ path = storage::VirtualPath::DirName(path);
Subtrees::iterator found =
inclusive_ancestors_of_subtree_roots_.find(path.value());
@@ -103,7 +103,7 @@ bool SubtreeSet::erase(const base::FilePath& subtree_root) {
size_t SubtreeSet::size() const {
Subtrees::const_iterator found =
- inclusive_ancestors_of_subtree_roots_.find(fileapi::VirtualPath::kRoot);
+ inclusive_ancestors_of_subtree_roots_.find(storage::VirtualPath::kRoot);
if (found == inclusive_ancestors_of_subtree_roots_.end())
return 0;
return found->second.number_of_subtrees_below;
« no previous file with comments | « chrome/browser/sync_file_system/remote_file_sync_service.h ('k') | chrome/browser/sync_file_system/sync_callbacks.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698