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

Unified Diff: remoting/host/security_key/security_key_extension.cc

Issue 2168303003: Removing 'AllowScopedIO' exception from SecurityKeyAuthHandlerLinux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@temp_dir
Patch Set: Fixing some comments Created 4 years, 5 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: remoting/host/security_key/security_key_extension.cc
diff --git a/remoting/host/security_key/security_key_extension.cc b/remoting/host/security_key/security_key_extension.cc
index 0ab94033ff7d21d0a32716c38b96e24b9e804c3b..4007ec428d3ad9f6cce505c138f26b3b1622d0c8 100644
--- a/remoting/host/security_key/security_key_extension.cc
+++ b/remoting/host/security_key/security_key_extension.cc
@@ -5,6 +5,8 @@
#include "remoting/host/security_key/security_key_extension.h"
#include "base/memory/ptr_util.h"
+#include "base/memory/ref_counted.h"
+#include "base/single_thread_task_runner.h"
#include "remoting/host/security_key/security_key_extension_session.h"
namespace {
@@ -15,7 +17,9 @@ const char kCapability[] = "";
namespace remoting {
-SecurityKeyExtension::SecurityKeyExtension() {}
+SecurityKeyExtension::SecurityKeyExtension(
+ scoped_refptr<base::SingleThreadTaskRunner> file_task_runner)
+ : file_task_runner_(file_task_runner) {}
SecurityKeyExtension::~SecurityKeyExtension() {}
@@ -31,7 +35,7 @@ SecurityKeyExtension::CreateExtensionSession(
// extension will only send messages through the initial
// |client_stub| and |details| with the current design.
return base::WrapUnique(
- new SecurityKeyExtensionSession(details, client_stub));
+ new SecurityKeyExtensionSession(details, client_stub, file_task_runner_));
}
} // namespace remoting
« no previous file with comments | « remoting/host/security_key/security_key_extension.h ('k') | remoting/host/security_key/security_key_extension_session.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698