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

Unified Diff: content/browser/renderer_host/pepper_message_filter.cc

Issue 8539049: CrOS: Build fix. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/browser/renderer_host/pepper_message_filter.cc
diff --git a/content/browser/renderer_host/pepper_message_filter.cc b/content/browser/renderer_host/pepper_message_filter.cc
index 9895dfbe2462c296c3b6b44ef08c36949ee608e8..c8df6ea2c25de22877b2b7bc8517ba697e383284 100644
--- a/content/browser/renderer_host/pepper_message_filter.cc
+++ b/content/browser/renderer_host/pepper_message_filter.cc
@@ -1027,9 +1027,7 @@ class PepperMessageFilter::LookupRequest {
int routing_id,
int request_id,
const net::HostResolver::RequestInfo& request_info)
- : ALLOW_THIS_IN_INITIALIZER_LIST(
- net_callback_(this, &LookupRequest::OnLookupFinished)),
- pepper_message_filter_(pepper_message_filter),
+ : pepper_message_filter_(pepper_message_filter),
resolver_(resolver),
routing_id_(routing_id),
request_id_(request_id),
@@ -1037,8 +1035,9 @@ class PepperMessageFilter::LookupRequest {
}
void Start() {
- int result = resolver_.Resolve(request_info_, &addresses_, &net_callback_,
- net::BoundNetLog());
+ int result = resolver_.Resolve(
+ request_info_, &addresses_,
+ base::Bind(&LookupRequest::OnLookupFinished, this), net::BoundNetLog());
if (result != net::ERR_IO_PENDING)
OnLookupFinished(result);
}
@@ -1050,9 +1049,6 @@ class PepperMessageFilter::LookupRequest {
delete this;
}
- // HostResolver will call us using this callback when resolution is complete.
- net::OldCompletionCallbackImpl<LookupRequest> net_callback_;
-
PepperMessageFilter* pepper_message_filter_;
net::SingleRequestHostResolver resolver_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698