Chromium Code Reviews| Index: chrome/browser/google_apis/fake_drive_service.cc |
| diff --git a/chrome/browser/google_apis/fake_drive_service.cc b/chrome/browser/google_apis/fake_drive_service.cc |
| index 0c04f0a8245327f153482065644f8d34e360fd56..07538e994dbd11490140bbd2f4f9bf35e572d33e 100644 |
| --- a/chrome/browser/google_apis/fake_drive_service.cc |
| +++ b/chrome/browser/google_apis/fake_drive_service.cc |
| @@ -765,6 +765,7 @@ void FakeDriveService::AddNewDirectory( |
| 0, // content_length |
| parent_resource_id, |
| directory_name, |
| + false, |
| "folder"); |
| if (!new_entry) { |
| scoped_ptr<ResourceEntry> null; |
| @@ -803,6 +804,7 @@ void FakeDriveService::InitiateUploadNewFile( |
| 0, // content_length |
| parent_resource_id, |
| title, |
| + false, |
| "file"); |
| if (!new_entry) { |
| MessageLoop::current()->PostTask( |
| @@ -981,6 +983,7 @@ void FakeDriveService::AddNewFile(const std::string& content_type, |
| int64 content_length, |
| const std::string& parent_resource_id, |
| const std::string& title, |
| + bool sharedWithMe, |
| const GetResourceEntryCallback& callback) { |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| DCHECK(!callback.is_null()); |
| @@ -1006,6 +1009,7 @@ void FakeDriveService::AddNewFile(const std::string& content_type, |
| content_length, |
| parent_resource_id, |
| title, |
| + sharedWithMe, |
| entry_kind); |
| if (!new_entry) { |
| scoped_ptr<ResourceEntry> null; |
| @@ -1157,6 +1161,7 @@ const base::DictionaryValue* FakeDriveService::AddNewEntry( |
| int64 content_length, |
| const std::string& parent_resource_id, |
| const std::string& title, |
| + bool sharedWithMe, |
| const std::string& entry_kind) { |
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI)); |
| @@ -1193,6 +1198,14 @@ const base::DictionaryValue* FakeDriveService::AddNewEntry( |
| entry_kind); |
| categories->Append(category); |
| new_entry->Set("category", categories); |
| + if (sharedWithMe) { |
| + base::DictionaryValue* sharedWithMeLabel = new base::DictionaryValue; |
|
mtomasz
2013/04/18 09:46:03
sharedWithMeLabel -> shared_with_me_label in C++.
Haruki Sato
2013/04/18 11:33:44
Done. Thanks.
|
| + sharedWithMeLabel->SetString("label", "shared-with-me"); |
| + sharedWithMeLabel->SetString("scheme", "http://schemas.google.com/g/2005/labels"); |
|
mtomasz
2013/04/18 09:46:03
Exceeds > 80 characters? Please check.
Haruki Sato
2013/04/18 11:33:44
Done.
|
| + sharedWithMeLabel->SetString("term", |
| + "http://schemas.google.com/g/2005/labels#shared"); |
|
mtomasz
2013/04/18 09:46:03
Indentation is off.
Haruki Sato
2013/04/18 11:33:44
Done.
|
| + categories->Append(sharedWithMeLabel); |
| + } |
| // Add "content" which sets the content URL. |
| base::DictionaryValue* content = new base::DictionaryValue; |