| 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/downloads/downloads_api.h" | 5 #include "chrome/browser/extensions/api/downloads/downloads_api.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cctype> | 8 #include <cctype> |
| 9 #include <iterator> | 9 #include <iterator> |
| 10 #include <set> | 10 #include <set> |
| (...skipping 1083 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 if (!profile_ || !profile_->GetExtensionEventRouter()) | 1094 if (!profile_ || !profile_->GetExtensionEventRouter()) |
| 1095 return; | 1095 return; |
| 1096 base::ListValue args; | 1096 base::ListValue args; |
| 1097 args.Append(arg); | 1097 args.Append(arg); |
| 1098 std::string json_args; | 1098 std::string json_args; |
| 1099 base::JSONWriter::Write(&args, &json_args); | 1099 base::JSONWriter::Write(&args, &json_args); |
| 1100 profile_->GetExtensionEventRouter()->DispatchEventToRenderers( | 1100 profile_->GetExtensionEventRouter()->DispatchEventToRenderers( |
| 1101 event_name, | 1101 event_name, |
| 1102 json_args, | 1102 json_args, |
| 1103 profile_, | 1103 profile_, |
| 1104 GURL(), | 1104 GURL()); |
| 1105 extensions::EventFilteringInfo()); | |
| 1106 } | 1105 } |
| OLD | NEW |