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

Side by Side Diff: chrome/browser/sync_file_system/drive_backend/metadata_database.cc

Issue 62883005: Implement SyncEngine::UpdateRegisteredApps() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h" 5 #include "chrome/browser/sync_file_system/drive_backend/metadata_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <stack> 8 #include <stack>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 1525 matching lines...) Expand 10 before | Expand all | Expand 10 after
1536 details->SetString("dirty", tracker->dirty() ? "true" : "false"); 1536 details->SetString("dirty", tracker->dirty() ? "true" : "false");
1537 1537
1538 file->Set("details", details); 1538 file->Set("details", details);
1539 1539
1540 files->Append(file); 1540 files->Append(file);
1541 } 1541 }
1542 1542
1543 return files.Pass(); 1543 return files.Pass();
1544 } 1544 }
1545 1545
1546 void MetadataDatabase::GetRegisteredAppIDs(std::vector<std::string>* app_ids) {
1547 DCHECK(app_ids);
1548 app_ids->clear();
1549 app_ids->reserve(app_root_by_app_id_.size());
1550 for (TrackerByAppID::iterator itr = app_root_by_app_id_.begin();
1551 itr != app_root_by_app_id_.end(); ++itr) {
nhiroki 2013/11/18 09:09:52 indent-nit
keishi 2013/11/18 09:15:32 Done.
1552 app_ids->push_back(itr->first);
1553 }
1554 }
1555
1546 } // namespace drive_backend 1556 } // namespace drive_backend
1547 } // namespace sync_file_system 1557 } // namespace sync_file_system
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698