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

Unified Diff: components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc

Issue 2250223002: Add InfoBar delegate for previews (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 3 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: components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc
diff --git a/components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc b/components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc
index c85330f4477f9932278b8f56135b00ed81bee82e..5522955764761c2a653b7a97e7e82a77ba89521e 100644
--- a/components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc
+++ b/components/data_reduction_proxy/content/browser/content_lofi_ui_service.cc
@@ -27,8 +27,8 @@ ContentLoFiUIService::ContentLoFiUIService(
ContentLoFiUIService::~ContentLoFiUIService() {}
-void ContentLoFiUIService::OnLoFiReponseReceived(const net::URLRequest& request,
- bool is_preview) {
+void ContentLoFiUIService::OnLoFiReponseReceived(
+ const net::URLRequest& request) {
DCHECK_CURRENTLY_ON(content::BrowserThread::IO);
int render_process_id = -1;
int render_frame_id = -1;
@@ -37,15 +37,13 @@ void ContentLoFiUIService::OnLoFiReponseReceived(const net::URLRequest& request,
ui_task_runner_->PostTask(
FROM_HERE,
base::Bind(&ContentLoFiUIService::OnLoFiResponseReceivedOnUIThread,
- base::Unretained(this), render_process_id, render_frame_id,
- is_preview));
+ base::Unretained(this), render_process_id, render_frame_id));
}
}
void ContentLoFiUIService::OnLoFiResponseReceivedOnUIThread(
int render_process_id,
- int render_frame_id,
- bool is_preview) {
+ int render_frame_id) {
DCHECK(ui_task_runner_->BelongsToCurrentThread());
content::RenderFrameHost* frame =
content::RenderFrameHost::FromID(render_process_id, render_frame_id);
@@ -53,7 +51,7 @@ void ContentLoFiUIService::OnLoFiResponseReceivedOnUIThread(
DCHECK(!on_lofi_response_received_callback_.is_null());
content::WebContents* web_contents =
content::WebContents::FromRenderFrameHost(frame);
- on_lofi_response_received_callback_.Run(web_contents, is_preview);
+ on_lofi_response_received_callback_.Run(web_contents);
}
}

Powered by Google App Engine
This is Rietveld 408576698