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

Unified Diff: remoting/host/elevated_controller_win.h

Issue 10537182: The user's consent to crash dumps reporting can now be set via the UI (Windows only). The checkbox … (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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/elevated_controller_win.h
diff --git a/remoting/host/elevated_controller_win.h b/remoting/host/elevated_controller_win.h
index e76db77fa526d8d5a1bf7ad166414478391a820e..7f2e86c061219f6e81da493e4aee1e3c38384b4b 100644
--- a/remoting/host/elevated_controller_win.h
+++ b/remoting/host/elevated_controller_win.h
@@ -19,8 +19,8 @@ namespace remoting {
class ATL_NO_VTABLE ElevatedControllerWin
: public ATL::CComObjectRootEx<ATL::CComSingleThreadModel>,
public ATL::CComCoClass<ElevatedControllerWin, &CLSID_ElevatedController>,
- public ATL::IDispatchImpl<IDaemonControl, &IID_IDaemonControl,
- &LIBID_ChromotingElevatedControllerLib, 1, 0> {
+ public ATL::IDispatchImpl<IDaemonControl2, &IID_IDaemonControl2,
+ &LIBID_ChromotingElevatedControllerLib, 1, 1> {
public:
ElevatedControllerWin();
@@ -36,6 +36,10 @@ class ATL_NO_VTABLE ElevatedControllerWin
STDMETHOD(StopDaemon)();
STDMETHOD(UpdateConfig)(BSTR config);
+ // IDaemonControl2 implementation.
+ STDMETHOD(GetUsageStatsConsent)(BOOL* set_by_policy, BOOL* allowed);
+ STDMETHOD(SetUsageStatsConsent)(BOOL allowed);
+
DECLARE_NO_REGISTRY()
private:
@@ -43,6 +47,7 @@ class ATL_NO_VTABLE ElevatedControllerWin
BEGIN_COM_MAP(ElevatedControllerWin)
COM_INTERFACE_ENTRY(IDaemonControl)
+ COM_INTERFACE_ENTRY(IDaemonControl2)
COM_INTERFACE_ENTRY(IDispatch)
END_COM_MAP()

Powered by Google App Engine
This is Rietveld 408576698