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

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

Issue 2710713004: Revert "Use the Windows MDM API to check if the machine is being managed." (Closed)
Patch Set: 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
« no previous file with comments | « base/win/win_util.cc ('k') | chrome/browser/chrome_browser_main.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 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 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 constexpr char kHungRendererOutstandingEventType[] = 53 constexpr char kHungRendererOutstandingEventType[] =
54 "hung-outstanding-event-type"; 54 "hung-outstanding-event-type";
55 constexpr char kHungRendererLastEventType[] = "hung-last-event-type"; 55 constexpr char kHungRendererLastEventType[] = "hung-last-event-type";
56 constexpr char kHungRendererReason[] = "hung-reason"; 56 constexpr char kHungRendererReason[] = "hung-reason";
57 constexpr char kInputEventFilterSendFailure[] = 57 constexpr char kInputEventFilterSendFailure[] =
58 "input-event-filter-send-failure"; 58 "input-event-filter-send-failure";
59 59
60 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded"; 60 constexpr char kThirdPartyModulesLoaded[] = "third-party-modules-loaded";
61 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded"; 61 constexpr char kThirdPartyModulesNotLoaded[] = "third-party-modules-not-loaded";
62 62
63 constexpr char kIsEnterpriseManaged[] = "is-enterprise-managed"; 63 constexpr char kEnrolledToDomain[] = "enrolled-to-domain";
64 64
65 constexpr char kViewCount[] = "view-count"; 65 constexpr char kViewCount[] = "view-count";
66 constexpr char kZeroEncodeDetails[] = "zero-encode-details"; 66 constexpr char kZeroEncodeDetails[] = "zero-encode-details";
67 67
68 // The user's printers, up to kPrinterInfoCount. Should be set with 68 // The user's printers, up to kPrinterInfoCount. Should be set with
69 // ScopedPrinterInfo. 69 // ScopedPrinterInfo.
70 constexpr size_t kPrinterInfoCount = 4; 70 constexpr size_t kPrinterInfoCount = 4;
71 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS; 71 constexpr char kPrinterInfo[] = "prn-info-%" PRIuS;
72 72
73 using namespace crash_keys; 73 using namespace crash_keys;
(...skipping 26 matching lines...) Expand all
100 {kBrowserUnpinTrace, kMediumSize}, 100 {kBrowserUnpinTrace, kMediumSize},
101 {kGPUVendorID, kSmallSize}, 101 {kGPUVendorID, kSmallSize},
102 {kGPUDeviceID, kSmallSize}, 102 {kGPUDeviceID, kSmallSize},
103 {kGPUDriverVersion, kSmallSize}, 103 {kGPUDriverVersion, kSmallSize},
104 {kGPUPixelShaderVersion, kSmallSize}, 104 {kGPUPixelShaderVersion, kSmallSize},
105 {kGPUVertexShaderVersion, kSmallSize}, 105 {kGPUVertexShaderVersion, kSmallSize},
106 106
107 // browser/: 107 // browser/:
108 {kThirdPartyModulesLoaded, kSmallSize}, 108 {kThirdPartyModulesLoaded, kSmallSize},
109 {kThirdPartyModulesNotLoaded, kSmallSize}, 109 {kThirdPartyModulesNotLoaded, kSmallSize},
110 {kIsEnterpriseManaged, kSmallSize}, 110 {kEnrolledToDomain, kSmallSize},
111 111
112 // content/: 112 // content/:
113 {"bad_message_reason", kSmallSize}, 113 {"bad_message_reason", kSmallSize},
114 {"discardable-memory-allocated", kSmallSize}, 114 {"discardable-memory-allocated", kSmallSize},
115 {"discardable-memory-free", kSmallSize}, 115 {"discardable-memory-free", kSmallSize},
116 {kFontKeyName, kSmallSize}, 116 {kFontKeyName, kSmallSize},
117 { "mojo-message-error", kMediumSize }, 117 { "mojo-message-error", kMediumSize },
118 {"ppapi_path", kMediumSize}, 118 {"ppapi_path", kMediumSize},
119 {"subresource_url", kLargeSize}, 119 {"subresource_url", kLargeSize},
120 {"total-discardable-memory-allocated", kSmallSize}, 120 {"total-discardable-memory-allocated", kSmallSize},
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after
399 bool ChromeCrashReporterClient::GetCollectStatsInSample() { 399 bool ChromeCrashReporterClient::GetCollectStatsInSample() {
400 return install_static::GetCollectStatsInSample(); 400 return install_static::GetCollectStatsInSample();
401 } 401 }
402 402
403 bool ChromeCrashReporterClient::EnableBreakpadForProcess( 403 bool ChromeCrashReporterClient::EnableBreakpadForProcess(
404 const std::string& process_type) { 404 const std::string& process_type) {
405 // This is not used by Crashpad (at least on Windows). 405 // This is not used by Crashpad (at least on Windows).
406 NOTREACHED(); 406 NOTREACHED();
407 return true; 407 return true;
408 } 408 }
OLDNEW
« no previous file with comments | « base/win/win_util.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698