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

Unified Diff: chrome/browser/extensions/api/messaging/message_property_provider.cc

Issue 1149083013: Combine ChannelIDService::RequestHandle and ChannelIDServiceRequest classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove new test case and combine it with existing one Created 5 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_messages_apitest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/api/messaging/message_property_provider.cc
diff --git a/chrome/browser/extensions/api/messaging/message_property_provider.cc b/chrome/browser/extensions/api/messaging/message_property_provider.cc
index 1d6603b041dcc0b85bc4812cced0c1c3704b60f7..b52b02784b8bc044f2d3b6f32dcbc7b9b9acf5fe 100644
--- a/chrome/browser/extensions/api/messaging/message_property_provider.cc
+++ b/chrome/browser/extensions/api/messaging/message_property_provider.cc
@@ -48,7 +48,7 @@ void MessagePropertyProvider::GetChannelID(Profile* profile,
// MessagePropertyProvider::GetChannelID.
struct MessagePropertyProvider::GetChannelIDOutput {
scoped_ptr<crypto::ECPrivateKey> channel_id_key;
- net::ChannelIDService::RequestHandle request_handle;
+ net::ChannelIDService::Request request;
};
// static
@@ -67,9 +67,8 @@ void MessagePropertyProvider::GetChannelIDOnIOThread(
original_task_runner,
base::Owned(output),
reply);
- int status = channel_id_service->GetChannelID(host, &output->channel_id_key,
- net_completion_callback,
- &output->request_handle);
+ int status = channel_id_service->GetChannelID(
+ host, &output->channel_id_key, net_completion_callback, &output->request);
if (status == net::ERR_IO_PENDING)
return;
GotChannelID(original_task_runner, output, reply, status);
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_messages_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698