Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5742)

Unified Diff: chrome/renderer/page_load_histograms.cc

Issue 1315303002: Dispatch DRP IPC call from renderer main thread (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Override CanSendWhileSwappedOut Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/renderer/page_load_histograms.cc
diff --git a/chrome/renderer/page_load_histograms.cc b/chrome/renderer/page_load_histograms.cc
index f032204224350963e36be4e6bbe24806bbf9486f..b7fd03ec3cc5e3d03c096bf516a86d3c7a3e48d4 100644
--- a/chrome/renderer/page_load_histograms.cc
+++ b/chrome/renderer/page_load_histograms.cc
@@ -881,9 +881,13 @@ void PageLoadHistograms::Dump(WebFrame* frame) {
data_reduction_proxy::LoFiStatus lofi_status =
data_reduction_proxy::LOFI_STATUS_TEMPORARILY_OFF;
if (!document_state->proxy_server().IsEmpty()) {
- Send(new DataReductionProxyViewHostMsg_DataReductionProxyStatus(
- document_state->proxy_server(), &data_reduction_proxy_was_used,
- &lofi_status));
+ bool handled =
+ Send(new DataReductionProxyViewHostMsg_DataReductionProxyStatus(
+ document_state->proxy_server(), &data_reduction_proxy_was_used,
+ &lofi_status));
+ // If the IPC call is not handled, then |data_reduction_proxy_was_used|
+ // should remain |false|.
+ DCHECK(handled || !data_reduction_proxy_was_used);
}
bool came_from_websearch =
« chrome/common/chrome_content_client.cc ('K') | « chrome/common/chrome_content_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698