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

Unified Diff: chrome/browser/chromeos/drive/change_list_processor.h

Issue 107293013: drive: Stop comparing resource ID against kDriveGrandRootLocalId (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/change_list_processor.h
diff --git a/chrome/browser/chromeos/drive/change_list_processor.h b/chrome/browser/chromeos/drive/change_list_processor.h
index 2f8d4a5035073b386bdced22223dfa805751bb87..57926bf92dbe44653bad3727d77d5a5088d21b82 100644
--- a/chrome/browser/chromeos/drive/change_list_processor.h
+++ b/chrome/browser/chromeos/drive/change_list_processor.h
@@ -33,14 +33,19 @@ class ResourceMetadata;
class DirectoryFetchInfo {
public:
DirectoryFetchInfo() : changestamp_(0) {}
- DirectoryFetchInfo(const std::string& resource_id,
+ DirectoryFetchInfo(const std::string& local_id,
+ const std::string& resource_id,
int64 changestamp)
- : resource_id_(resource_id),
+ : local_id_(local_id),
+ resource_id_(resource_id),
changestamp_(changestamp) {
}
// Returns true if the object is empty.
- bool empty() const { return resource_id_.empty(); }
+ bool empty() const { return local_id_.empty(); }
+
+ // Local ID of the directory.
+ const std::string& local_id() const { return local_id_; }
// Resource ID of the directory.
const std::string& resource_id() const { return resource_id_; }
@@ -53,6 +58,7 @@ class DirectoryFetchInfo {
std::string ToString() const;
private:
+ const std::string local_id_;
const std::string resource_id_;
const int64 changestamp_;
};
« no previous file with comments | « chrome/browser/chromeos/drive/change_list_loader.cc ('k') | chrome/browser/chromeos/drive/change_list_processor.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698