| 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;
|
|
|
|
|