| 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
|
|
|