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

Side by Side Diff: chrome/app/chrome_crash_reporter_client_win.cc

Issue 2581353002: Use the Windows MDM API to check if the machine is being managed. (Closed)
Patch Set: rebased Created 3 years, 10 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 // TODO(ananta/scottmg) 5 // TODO(ananta/scottmg)
6 // Add test coverage for Crashpad. 6 // Add test coverage for Crashpad.
7 #include "chrome/app/chrome_crash_reporter_client_win.h" 7 #include "chrome/app/chrome_crash_reporter_client_win.h"
8 8
9 #include <assert.h> 9 #include <assert.h>
10 #include <windows.h> 10 #include <windows.h>
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 constexpr char kHungRendererOutstandingEventType[] = 52 constexpr char kHungRendererOutstandingEventType[] =
53 "hung-outstanding-event-type"; 53 "hung-outstanding-event-type";
54 constexpr char kHungRendererLastEventType[] = "hung-last-event-type"; 54 constexpr char kHungRendererLastEventType[] = "hung-last-event-type";
55 constexpr char kHungRendererReason[] = "hung-reason"; 55 constexpr char kHungRendererReason[] = "hung-reason";
56 constexpr char kInputEventFilterSendFailure[] = 56 constexpr char kInputEventFilterSendFailure[] =
57 "input-event-filter-send-failure"; 57 "input-event-filter-send-failure";
58 58
59 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; 59 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded";
60 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; 60 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded";
61 61
62 constexpr char kEnrolledToDomain[] = "enrolled-to-domain"; 62 constexpr char kIsEnterpriseManaged[] = "is-enterprise-managed";
63 63
64 constexpr char kViewCount[] = "view-count"; 64 constexpr char kViewCount[] = "view-count";
65 constexpr char kZeroEncodeDetails[] = "zero-encode-details"; 65 constexpr char kZeroEncodeDetails[] = "zero-encode-details";
66 66
67 // The user's printers, up to kPrinterInfoCount. Should be set with 67 // The user's printers, up to kPrinterInfoCount. Should be set with
68 // ScopedPrinterInfo. 68 // ScopedPrinterInfo.
69 constexpr size_t kPrinterInfoCount = 4; 69 constexpr size_t kPrinterInfoCount = 4;
70 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS; 70 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS;
71 71
72 using namespace crash_keys; 72 using namespace crash_keys;
(...skipping 26 matching lines...) Expand all
99 {kBrowserUnpinTrace, kMediumSize}, 99 {kBrowserUnpinTrace, kMediumSize},
100 {kGPUVendorID, kSmallSize}, 100 {kGPUVendorID, kSmallSize},
101 {kGPUDeviceID, kSmallSize}, 101 {kGPUDeviceID, kSmallSize},
102 {kGPUDriverVersion, kSmallSize}, 102 {kGPUDriverVersion, kSmallSize},
103 {kGPUPixelShaderVersion, kSmallSize}, 103 {kGPUPixelShaderVersion, kSmallSize},
104 {kGPUVertexShaderVersion, kSmallSize}, 104 {kGPUVertexShaderVersion, kSmallSize},
105 105
106 // browser/: 106 // browser/:
107 {kThirdPartyModulesLoaded, kSmallSize}, 107 {kThirdPartyModulesLoaded, kSmallSize},
108 {kThirdPartyModulesNotLoaded, kSmallSize}, 108 {kThirdPartyModulesNotLoaded, kSmallSize},
109 {kEnrolledToDomain, kSmallSize}, 109 {kIsEnterpriseManaged, kSmallSize},
110 110
111 // content/: 111 // content/:
112 {"bad_message_reason", kSmallSize}, 112 {"bad_message_reason", kSmallSize},
113 {"discardable-memory-allocated", kSmallSize}, 113 {"discardable-memory-allocated", kSmallSize},
114 {"discardable-memory-free", kSmallSize}, 114 {"discardable-memory-free", kSmallSize},
115 {kFontKeyName, kSmallSize}, 115 {kFontKeyName, kSmallSize},
116 { "mojo-message-error", kMediumSize }, 116 { "mojo-message-error", kMediumSize },
117 {"ppapi_path", kMediumSize}, 117 {"ppapi_path", kMediumSize},
118 {"subresource_url", kLargeSize}, 118 {"subresource_url", kLargeSize},
119 {"total-discardable-memory-allocated", kSmallSize}, 119 {"total-discardable-memory-allocated", kSmallSize},
(...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after
394 bool ChromeCrashReporterClient::GetCollectStatsInSample() { 394 bool ChromeCrashReporterClient::GetCollectStatsInSample() {
395 return install_static::GetCollectStatsInSample(); 395 return install_static::GetCollectStatsInSample();
396 } 396 }
397 397
398 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 398 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
399 const std::string& process_type) { 399 const std::string& process_type) {
400 // This is not used by Crashpad (at least on Windows). 400 // This is not used by Crashpad (at least on Windows).
401 NOTREACHED(); 401 NOTREACHED();
402 return true; 402 return true;
403 } 403 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698