| 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/user_script_master.h" | 5 #include "chrome/browser/extensions/user_script_master.h" |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/bind_helpers.h" | 10 #include "base/bind_helpers.h" |
| (...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 533 // calling InitUserScripts when it's created which will call this again. | 533 // calling InitUserScripts when it's created which will call this again. |
| 534 base::ProcessHandle handle = process->GetHandle(); | 534 base::ProcessHandle handle = process->GetHandle(); |
| 535 if (!handle) | 535 if (!handle) |
| 536 return; | 536 return; |
| 537 | 537 |
| 538 base::SharedMemoryHandle handle_for_process; | 538 base::SharedMemoryHandle handle_for_process; |
| 539 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) | 539 if (!shared_memory->ShareToProcess(handle, &handle_for_process)) |
| 540 return; // This can legitimately fail if the renderer asserts at startup. | 540 return; // This can legitimately fail if the renderer asserts at startup. |
| 541 | 541 |
| 542 if (base::SharedMemory::IsHandleValid(handle_for_process)) { | 542 if (base::SharedMemory::IsHandleValid(handle_for_process)) { |
| 543 process->Send(new ExtensionMsg_UpdateUserScripts(handle_for_process, | 543 process->Send(new ExtensionMsg_UpdateUserScripts( |
| 544 changed_extensions)); | 544 handle_for_process, "", changed_extensions)); |
| 545 } | 545 } |
| 546 } | 546 } |
| 547 | 547 |
| 548 } // namespace extensions | 548 } // namespace extensions |
| OLD | NEW |