OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #include "chrome/browser/chrome_browser_main_mac.h" | 5 #include "chrome/browser/chrome_browser_main_mac.h" |
6 | 6 |
7 #import <Cocoa/Cocoa.h> | 7 #import <Cocoa/Cocoa.h> |
8 #include <sys/sysctl.h> | 8 #include <sys/sysctl.h> |
9 | 9 |
10 #include "apps/app_shim/app_shim_host_manager_mac.h" | 10 #include "apps/app_shim/app_shim_host_manager_mac.h" |
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
130 | 130 |
131 // If it's not any of the expected OS versions or later than them, it must | 131 // If it's not any of the expected OS versions or later than them, it must |
132 // be prehistoric. | 132 // be prehistoric. |
133 return cpu64_known ? (cpu64 ? SABER_TOOTHED_CAT_64 : SABER_TOOTHED_CAT_32) : | 133 return cpu64_known ? (cpu64 ? SABER_TOOTHED_CAT_64 : SABER_TOOTHED_CAT_32) : |
134 SABER_TOOTHED_CAT_DUNNO; | 134 SABER_TOOTHED_CAT_DUNNO; |
135 } | 135 } |
136 | 136 |
137 void RecordCatSixtyFour() { | 137 void RecordCatSixtyFour() { |
138 CatSixtyFour cat_sixty_four = CatSixtyFourValue(); | 138 CatSixtyFour cat_sixty_four = CatSixtyFourValue(); |
139 | 139 |
140 // Set this higher than the highest value in the CatSixtyFour enum to | 140 // Set this higher than the highest value in the CatSixtyFour enum to provide |
141 // provide some headroom and then leave it alone. See HISTOGRAM_ENUMERATION | 141 // some headroom and then leave it alone. See UMA_HISTOGRAM_ENUMERATION in |
142 // in base/metrics/histogram.h. | 142 // base/metrics/histogram.h. |
143 const int kMaxCatsAndSixtyFours = 32; | 143 const int kMaxCatsAndSixtyFours = 32; |
144 COMPILE_ASSERT(kMaxCatsAndSixtyFours >= CAT_SIXTY_FOUR_MAX, | 144 COMPILE_ASSERT(kMaxCatsAndSixtyFours >= CAT_SIXTY_FOUR_MAX, |
145 CatSixtyFour_enum_grew_too_large); | 145 CatSixtyFour_enum_grew_too_large); |
146 | 146 |
147 UMA_HISTOGRAM_ENUMERATION("OSX.CatSixtyFour", | 147 UMA_HISTOGRAM_ENUMERATION("OSX.CatSixtyFour", |
148 cat_sixty_four, | 148 cat_sixty_four, |
149 kMaxCatsAndSixtyFours); | 149 kMaxCatsAndSixtyFours); |
150 } | 150 } |
151 | 151 |
152 } // namespace | 152 } // namespace |
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
282 MacStartupProfiler::POST_PROFILE_INIT); | 282 MacStartupProfiler::POST_PROFILE_INIT); |
283 ChromeBrowserMainPartsPosix::PostProfileInit(); | 283 ChromeBrowserMainPartsPosix::PostProfileInit(); |
284 g_browser_process->metrics_service()->RecordBreakpadRegistration( | 284 g_browser_process->metrics_service()->RecordBreakpadRegistration( |
285 breakpad::IsCrashReporterEnabled()); | 285 breakpad::IsCrashReporterEnabled()); |
286 } | 286 } |
287 | 287 |
288 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { | 288 void ChromeBrowserMainPartsMac::DidEndMainMessageLoop() { |
289 AppController* appController = [NSApp delegate]; | 289 AppController* appController = [NSApp delegate]; |
290 [appController didEndMainMessageLoop]; | 290 [appController didEndMainMessageLoop]; |
291 } | 291 } |
OLD | NEW |