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

Unified Diff: chrome/browser/chromeos/drive/drive_app_registry.cc

Issue 23503008: file_manager: Add DriveAppRegistry::UpdateFromAppList() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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/chromeos/drive/drive_app_registry.cc
diff --git a/chrome/browser/chromeos/drive/drive_app_registry.cc b/chrome/browser/chromeos/drive/drive_app_registry.cc
index 38fa23e5cc31a729247e5a1e23be3bc00ccc5f27..8b0af43179ea90e498a4a8f018d36922238e6ba2 100644
--- a/chrome/browser/chromeos/drive/drive_app_registry.cc
+++ b/chrome/browser/chromeos/drive/drive_app_registry.cc
@@ -162,12 +162,16 @@ void DriveAppRegistry::UpdateAfterGetAppList(
}
DCHECK(app_list);
+ UpdateFromAppList(*app_list);
+}
+void DriveAppRegistry::UpdateFromAppList(
+ const google_apis::AppList& app_list) {
url_to_name_map_.clear();
STLDeleteValues(&app_extension_map_);
STLDeleteValues(&app_mimetypes_map_);
- for (size_t i = 0; i < app_list->items().size(); ++i) {
- const google_apis::AppResource& app = *app_list->items()[i];
+ for (size_t i = 0; i < app_list.items().size(); ++i) {
+ const google_apis::AppResource& app = *app_list.items()[i];
if (app.product_url().is_empty())
continue;
« no previous file with comments | « chrome/browser/chromeos/drive/drive_app_registry.h ('k') | chrome/browser/chromeos/drive/drive_app_registry_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698