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/extension_management_api.h" | 5 #include "chrome/browser/extensions/extension_management_api.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 } | 581 } |
582 CHECK(extension); | 582 CHECK(extension); |
583 ExtensionService* service = profile->GetExtensionService(); | 583 ExtensionService* service = profile->GetExtensionService(); |
584 args.Append(CreateExtensionInfo(*extension, service)); | 584 args.Append(CreateExtensionInfo(*extension, service)); |
585 } | 585 } |
586 | 586 |
587 std::string args_json; | 587 std::string args_json; |
588 base::JSONWriter::Write(&args, &args_json); | 588 base::JSONWriter::Write(&args, &args_json); |
589 | 589 |
590 profile->GetExtensionEventRouter()->DispatchEventToRenderers( | 590 profile->GetExtensionEventRouter()->DispatchEventToRenderers( |
591 event_name, args_json, NULL, GURL()); | 591 event_name, args_json, NULL, GURL(), EventFilteringInfo()); |
592 } | 592 } |
OLD | NEW |