Chromium Code Reviews| Index: extensions/renderer/dispatcher.cc |
| diff --git a/extensions/renderer/dispatcher.cc b/extensions/renderer/dispatcher.cc |
| index 34324e2be1bf10a27c375337e720fd03c5a85029..5804d31f143ae946a83af3b4007e7743cf073c5b 100644 |
| --- a/extensions/renderer/dispatcher.cc |
| +++ b/extensions/renderer/dispatcher.cc |
| @@ -840,6 +840,8 @@ bool Dispatcher::OnControlMessageReceived(const IPC::Message& message) { |
| IPC_MESSAGE_HANDLER(ExtensionMsg_SetScriptingWhitelist, |
| OnSetScriptingWhitelist) |
| IPC_MESSAGE_HANDLER(ExtensionMsg_SetSystemFont, OnSetSystemFont) |
| + IPC_MESSAGE_HANDLER(ExtensionMsg_SetWebViewPartitionID, |
| + OnSetWebViewPartitionID) |
| IPC_MESSAGE_HANDLER(ExtensionMsg_ShouldSuspend, OnShouldSuspend) |
| IPC_MESSAGE_HANDLER(ExtensionMsg_Suspend, OnSuspend) |
| IPC_MESSAGE_HANDLER(ExtensionMsg_TransferBlobs, OnTransferBlobs) |
| @@ -1054,6 +1056,14 @@ void Dispatcher::OnSetSystemFont(const std::string& font_family, |
| system_font_size_ = font_size; |
| } |
| +void Dispatcher::OnSetWebViewPartitionID(const std::string& partition_id) { |
| + // |webview_partition_id_| cannot be changed once set. |
| + DCHECK(webview_partition_id_.empty() || |
|
not at google - send to devlin
2015/09/03 20:17:54
Make this a CHECK, then you don't need the extra "
paulmeyer
2015/09/08 18:51:36
Done.
|
| + webview_partition_id_ == partition_id); |
| + if (webview_partition_id_.empty()) |
| + webview_partition_id_ = partition_id; |
| +} |
| + |
| void Dispatcher::OnShouldSuspend(const std::string& extension_id, |
| uint64 sequence_id) { |
| RenderThread::Get()->Send( |