| 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/extensions/api/management/management_api.h" | 5 #include "chrome/browser/extensions/api/management/management_api.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 640 details)->extension; | 640 details)->extension; |
| 641 } else { | 641 } else { |
| 642 extension = content::Details<const Extension>(details).ptr(); | 642 extension = content::Details<const Extension>(details).ptr(); |
| 643 } | 643 } |
| 644 CHECK(extension); | 644 CHECK(extension); |
| 645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo( | 645 scoped_ptr<management::ExtensionInfo> info = CreateExtensionInfo( |
| 646 *extension, ExtensionSystem::Get(profile)); | 646 *extension, ExtensionSystem::Get(profile)); |
| 647 args->Append(info->ToValue().release()); | 647 args->Append(info->ToValue().release()); |
| 648 } | 648 } |
| 649 | 649 |
| 650 profile->GetExtensionEventRouter()->DispatchEventToRenderers( | 650 extensions::ExtensionSystem::Get(profile)->event_router()-> |
| 651 event_name, args.Pass(), NULL, GURL(), extensions::EventFilteringInfo()); | 651 DispatchEventToRenderers(event_name, args.Pass(), NULL, GURL(), |
| 652 extensions::EventFilteringInfo()); |
| 652 } | 653 } |
| OLD | NEW |