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

Side by Side Diff: remoting/host/remoting_me2me_host.cc

Issue 10447041: Fix Ctrl+Alt+Esc keyboard shortcut in Me2Me host. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/mouse_move_observer.h ('k') | remoting/host/ui_strings.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 // 4 //
5 // This file implements a standalone host process for Me2Me. 5 // This file implements a standalone host process for Me2Me.
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/at_exit.h" 9 #include "base/at_exit.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after
195 host_->SetAuthenticatorFactory(factory.Pass()); 195 host_->SetAuthenticatorFactory(factory.Pass());
196 } 196 }
197 197
198 int Run() { 198 int Run() {
199 if (!LoadConfig()) { 199 if (!LoadConfig()) {
200 return kInvalidHostConfigurationExitCode; 200 return kInvalidHostConfigurationExitCode;
201 } 201 }
202 202
203 #if defined(OS_MACOSX) || defined(OS_WIN) 203 #if defined(OS_MACOSX) || defined(OS_WIN)
204 host_user_interface_.reset(new HostUserInterface(context_.get())); 204 host_user_interface_.reset(new HostUserInterface(context_.get()));
205 host_user_interface_->DisableDisconnectShortcutOnMac();
206 #endif 205 #endif
207 206
208 StartWatchingNatPolicy(); 207 StartWatchingNatPolicy();
209 208
210 #if defined(OS_MACOSX) || defined(OS_WIN) 209 #if defined(OS_MACOSX) || defined(OS_WIN)
211 context_->file_message_loop()->PostTask( 210 context_->file_message_loop()->PostTask(
212 FROM_HERE, 211 FROM_HERE,
213 base::Bind(&HostProcess::ListenForConfigChanges, 212 base::Bind(&HostProcess::ListenForConfigChanges,
214 base::Unretained(this))); 213 base::Unretained(this)));
215 #endif 214 #endif
(...skipping 354 matching lines...) Expand 10 before | Expand all | Expand 10 after
570 569
571 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs. 570 // Mark the process as DPI-aware, so Windows won't scale coordinates in APIs.
572 SetProcessDPIAware(); 571 SetProcessDPIAware();
573 572
574 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting 573 // CommandLine::Init() ignores the passed |argc| and |argv| on Windows getting
575 // the command line from GetCommandLineW(), so we can safely pass NULL here. 574 // the command line from GetCommandLineW(), so we can safely pass NULL here.
576 return main(0, NULL); 575 return main(0, NULL);
577 } 576 }
578 577
579 #endif // defined(OS_WIN) 578 #endif // defined(OS_WIN)
OLDNEW
« no previous file with comments | « remoting/host/mouse_move_observer.h ('k') | remoting/host/ui_strings.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698