OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/automation/automation_provider_observers.h" | 5 #include "chrome/browser/automation/automation_provider_observers.h" |
6 | 6 |
7 #include <deque> | 7 #include <deque> |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
756 // loaded, or else the install has been skipped because it is | 756 // loaded, or else the install has been skipped because it is |
757 // either not allowed or else has been disabled. | 757 // either not allowed or else has been disabled. |
758 const extensions::Extension* extension = | 758 const extensions::Extension* extension = |
759 content::Details<extensions::Extension>(details).ptr(); | 759 content::Details<extensions::Extension>(details).ptr(); |
760 in_progress_updates_.erase(extension->id()); | 760 in_progress_updates_.erase(extension->id()); |
761 break; | 761 break; |
762 } | 762 } |
763 | 763 |
764 case chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR: { | 764 case chrome::NOTIFICATION_EXTENSION_INSTALL_ERROR: { |
765 // An extension had an error on update installation. | 765 // An extension had an error on update installation. |
766 CrxInstaller* installer = content::Source<CrxInstaller>(source).ptr(); | 766 extensions::CrxInstaller* installer = |
| 767 content::Source<extensions::CrxInstaller>(source).ptr(); |
767 in_progress_updates_.erase(installer->expected_id()); | 768 in_progress_updates_.erase(installer->expected_id()); |
768 break; | 769 break; |
769 } | 770 } |
770 | 771 |
771 case content::NOTIFICATION_LOAD_STOP: | 772 case content::NOTIFICATION_LOAD_STOP: |
772 // Break out to the conditional check below to see if all extension views | 773 // Break out to the conditional check below to see if all extension views |
773 // have stopped loading. | 774 // have stopped loading. |
774 break; | 775 break; |
775 | 776 |
776 default: | 777 default: |
(...skipping 2374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3151 if (automation_) { | 3152 if (automation_) { |
3152 AutomationJSONReply(automation_, reply_message_.release()) | 3153 AutomationJSONReply(automation_, reply_message_.release()) |
3153 .SendSuccess(NULL); | 3154 .SendSuccess(NULL); |
3154 } | 3155 } |
3155 delete this; | 3156 delete this; |
3156 } | 3157 } |
3157 } else { | 3158 } else { |
3158 NOTREACHED(); | 3159 NOTREACHED(); |
3159 } | 3160 } |
3160 } | 3161 } |
OLD | NEW |