Index: apps/app_restore_service.cc |
diff --git a/apps/app_restore_service.cc b/apps/app_restore_service.cc |
index 37a463be4586ef988ede153aecd814618c8c1e59..f5cf21c419289322359f4a763f8d6fefd2e3e995 100644 |
--- a/apps/app_restore_service.cc |
+++ b/apps/app_restore_service.cc |
@@ -69,14 +69,14 @@ void AppRestoreService::HandleStartup(bool should_restore_apps) { |
for (ExtensionSet::const_iterator it = extensions->begin(); |
it != extensions->end(); ++it) { |
- const Extension* extension = *it; |
+ const Extension* extension = it->get(); |
if (extension_prefs->IsExtensionRunning(extension->id())) { |
RecordAppStop(extension->id()); |
// If we are not restoring apps (e.g., because it is a clean restart), and |
// the app does not have retain permission, explicitly clear the retained |
// entries queue. |
if (should_restore_apps) { |
- RestoreApp(*it); |
+ RestoreApp(it->get()); |
} else { |
SavedFilesService::Get(profile_)->ClearQueueIfNoRetainPermission( |
extension); |