| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "extensions/renderer/user_script_set_manager.h" | 5 #include "extensions/renderer/user_script_set_manager.h" |
| 6 | 6 |
| 7 #include "components/crx_file/id_util.h" | 7 #include "components/crx_file/id_util.h" |
| 8 #include "content/public/renderer/render_thread.h" | 8 #include "content/public/renderer/render_thread.h" |
| 9 #include "extensions/common/extension_messages.h" | 9 #include "extensions/common/extension_messages.h" |
| 10 #include "extensions/renderer/dispatcher.h" | 10 #include "extensions/renderer/dispatcher.h" |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 all_hosts.insert(HostID(HostID::EXTENSIONS, extension_id)); | 142 all_hosts.insert(HostID(HostID::EXTENSIONS, extension_id)); |
| 143 } else { | 143 } else { |
| 144 all_hosts.insert(host_id); | 144 all_hosts.insert(host_id); |
| 145 } | 145 } |
| 146 effective_hosts = &all_hosts; | 146 effective_hosts = &all_hosts; |
| 147 } | 147 } |
| 148 | 148 |
| 149 if (scripts->UpdateUserScripts(shared_memory, | 149 if (scripts->UpdateUserScripts(shared_memory, |
| 150 *effective_hosts, | 150 *effective_hosts, |
| 151 whitelisted_only)) { | 151 whitelisted_only)) { |
| 152 FOR_EACH_OBSERVER( | 152 FOR_EACH_OBSERVER(Observer, observers_, |
| 153 Observer, | 153 OnUserScriptsUpdated(*effective_hosts)); |
| 154 observers_, | |
| 155 OnUserScriptsUpdated(*effective_hosts, scripts->scripts())); | |
| 156 } | 154 } |
| 157 } | 155 } |
| 158 | 156 |
| 159 } // namespace extensions | 157 } // namespace extensions |
| OLD | NEW |