| 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 547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 558 int type, | 558 int type, |
| 559 const content::NotificationSource& source, | 559 const content::NotificationSource& source, |
| 560 const content::NotificationDetails& details) { | 560 const content::NotificationDetails& details) { |
| 561 if (!automation_) { | 561 if (!automation_) { |
| 562 delete this; | 562 delete this; |
| 563 return; | 563 return; |
| 564 } | 564 } |
| 565 | 565 |
| 566 switch (type) { | 566 switch (type) { |
| 567 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { | 567 case chrome::NOTIFICATION_EXTENSION_UNINSTALLED: { |
| 568 if (id_ == *content::Details<const std::string>(details).ptr()) { | 568 if (id_ == content::Details<extensions::Extension>(details).ptr()->id()) { |
| 569 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); | 569 scoped_ptr<DictionaryValue> return_value(new DictionaryValue); |
| 570 return_value->SetBoolean("success", true); | 570 return_value->SetBoolean("success", true); |
| 571 AutomationJSONReply(automation_, reply_message_.release()) | 571 AutomationJSONReply(automation_, reply_message_.release()) |
| 572 .SendSuccess(return_value.get()); | 572 .SendSuccess(return_value.get()); |
| 573 delete this; | 573 delete this; |
| 574 return; | 574 return; |
| 575 } | 575 } |
| 576 break; | 576 break; |
| 577 } | 577 } |
| 578 | 578 |
| (...skipping 2572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3151 if (automation_) { | 3151 if (automation_) { |
| 3152 AutomationJSONReply(automation_, reply_message_.release()) | 3152 AutomationJSONReply(automation_, reply_message_.release()) |
| 3153 .SendSuccess(NULL); | 3153 .SendSuccess(NULL); |
| 3154 } | 3154 } |
| 3155 delete this; | 3155 delete this; |
| 3156 } | 3156 } |
| 3157 } else { | 3157 } else { |
| 3158 NOTREACHED(); | 3158 NOTREACHED(); |
| 3159 } | 3159 } |
| 3160 } | 3160 } |
| OLD | NEW |