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

Unified Diff: remoting/host/curtain_mode_win.cc

Issue 11275178: Enforce the RemoteAccessHostRequireCurtain policy on all platforms. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add missing member to CurtainModeWin. Created 8 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 | « remoting/host/curtain_mode_mac.cc ('k') | remoting/host/curtaining_host_observer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/curtain_mode_win.cc
diff --git a/remoting/host/curtain_mode_win.cc b/remoting/host/curtain_mode_win.cc
index f3ebcd2dd95bcb16d18de39cccdb7b62846af4a9..8309dbafe6c0f6dc7d1ab2d1aa3d04a08dc208be 100644
--- a/remoting/host/curtain_mode_win.cc
+++ b/remoting/host/curtain_mode_win.cc
@@ -10,13 +10,18 @@ namespace remoting {
class CurtainModeWin : public CurtainMode {
public:
- CurtainModeWin() {}
+ CurtainModeWin(const base::Closure& on_error) : on_error_(on_error) {}
// Overriden from CurtainMode.
virtual void SetActivated(bool activated) OVERRIDE {
- NOTIMPLEMENTED();
+ // Curtain-mode is not currently implemented for Windows.
+ if (activated) {
+ on_error_.Run();
+ }
}
private:
+ base::Closure on_error_;
+
DISALLOW_COPY_AND_ASSIGN(CurtainModeWin);
};
@@ -25,7 +30,7 @@ scoped_ptr<CurtainMode> CurtainMode::Create(
const base::Closure& on_session_activate,
const base::Closure& on_error) {
return scoped_ptr<CurtainMode>(
- new CurtainModeWin());
+ new CurtainModeWin(on_error));
}
} // namespace remoting
« no previous file with comments | « remoting/host/curtain_mode_mac.cc ('k') | remoting/host/curtaining_host_observer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698