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

Unified Diff: remoting/host/elevated_controller_module_win.cc

Issue 10071025: [Chromoting] Make the Windows host controller ask the user to confirm host registration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review. Created 8 years, 8 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/elevated_controller_module_win.cc
diff --git a/remoting/host/elevated_controller_module_win.cc b/remoting/host/elevated_controller_module_win.cc
index 9d6442b14b0634534411efcca97d5b407e7cf3aa..c493e764e08e6d3ec2cb51951b26dc150cf72b59 100644
--- a/remoting/host/elevated_controller_module_win.cc
+++ b/remoting/host/elevated_controller_module_win.cc
@@ -28,9 +28,13 @@ class ElevatedControllerModuleWin
remoting::ElevatedControllerModuleWin _AtlModule;
-int WINAPI WinMain(HINSTANCE, HINSTANCE, LPSTR, int command) {
+HINSTANCE g_instance = NULL;
+
+int WINAPI WinMain(HINSTANCE instance, HINSTANCE, LPSTR, int command) {
CommandLine::Init(0, NULL);
+ g_instance = instance;
+
// This object instance is required by Chrome code (for example,
// FilePath, LazyInstance, MessageLoop).
base::AtExitManager exit_manager;

Powered by Google App Engine
This is Rietveld 408576698