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

Side by Side Diff: plugin/mac/config_mac.mm

Issue 149130: In preparation for becoming an internal plugin in chrome I did these things:... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/o3d/
Patch Set: '' Created 11 years, 5 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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright 2009, Google Inc. 2 * Copyright 2009, Google Inc.
3 * All rights reserved. 3 * All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions are 6 * modification, are permitted provided that the following conditions are
7 * met: 7 * met:
8 * 8 *
9 * * Redistributions of source code must retain the above copyright 9 * * Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 27 matching lines...) Expand all
38 38
39 #include <IOKit/IOKitLib.h> 39 #include <IOKit/IOKitLib.h>
40 40
41 #include <iostream> 41 #include <iostream>
42 #include <fstream> 42 #include <fstream>
43 43
44 #include "plugin/cross/config.h" 44 #include "plugin/cross/config.h"
45 #include "plugin/cross/plugin_metrics.h" 45 #include "plugin/cross/plugin_metrics.h"
46 #include "plugin_mac.h" 46 #include "plugin_mac.h"
47 47
48 namespace o3d {
48 49
49 // Trivial little functions to check for the OS version boundaries we care about 50 // Trivial little functions to check for the OS version boundaries we care about
50 // and keep the result cached so they are cheap to call repeatedly. 51 // and keep the result cached so they are cheap to call repeatedly.
51 52
52 53
53 // Returns whether OS is 10.4 (Tiger) or higher. 54 // Returns whether OS is 10.4 (Tiger) or higher.
54 static bool IsMacOSTenFourOrHigher() { 55 static bool IsMacOSTenFourOrHigher() {
55 static bool isCached = false, result = false; 56 static bool isCached = false, result = false;
56 if (!isCached) { 57 if (!isCached) {
57 SInt32 major = 0, minor = 0; 58 SInt32 major = 0, minor = 0;
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after
321 322
322 int browser_major = 0, browser_minor = 0, browser_bugfix = 0; 323 int browser_major = 0, browser_minor = 0, browser_bugfix = 0;
323 if (GetBrowserVersionInfo(&browser_major, &browser_minor, &browser_bugfix)) { 324 if (GetBrowserVersionInfo(&browser_major, &browser_minor, &browser_bugfix)) {
324 o3d::metric_browser_major_version = browser_major; 325 o3d::metric_browser_major_version = browser_major;
325 o3d::metric_browser_minor_version = browser_minor; 326 o3d::metric_browser_minor_version = browser_minor;
326 o3d::metric_browser_bugfix_version = browser_bugfix; 327 o3d::metric_browser_bugfix_version = browser_bugfix;
327 } 328 }
328 329
329 return true; 330 return true;
330 } 331 }
332
333 } // namespace o3d
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698