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

Side by Side Diff: chrome/browser/bug_report_util.h

Issue 355013: Add OS version information to the bug report utility for the Mac version.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/bug_report_util.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 (c) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_BROWSER_BUG_REPORT_UTIL_H_ 5 #ifndef CHROME_BROWSER_BUG_REPORT_UTIL_H_
6 #define CHROME_BROWSER_BUG_REPORT_UTIL_H_ 6 #define CHROME_BROWSER_BUG_REPORT_UTIL_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/basictypes.h" 11 #include "base/basictypes.h"
12 #if defined(OS_MACOSX) 12 #if defined(OS_MACOSX)
13 #include "base/mac_util.h" 13 #include "base/mac_util.h"
14 #include "base/sys_info.h"
14 #endif 15 #endif
15 #include "base/scoped_ptr.h" 16 #include "base/scoped_ptr.h"
16 17
17 class Profile; 18 class Profile;
18 class TabContents; 19 class TabContents;
19 20
20 class BugReportUtil { 21 class BugReportUtil {
21 public: 22 public:
22 // SetOSVersion copies the maj.minor.build + servicePack_string 23 // SetOSVersion copies the maj.minor.build + servicePack_string
23 // into a string (for Windows only). We currently have: 24 // into a string. We currently have:
24 // win_util::GetWinVersion returns WinVersion, which is just 25 // win_util::GetWinVersion returns WinVersion, which is just
25 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for 26 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for
26 // bug reports. 27 // bug reports.
27 // base::SysInfo::OperatingSystemVersion returns an std::string 28 // base::SysInfo::OperatingSystemVersion returns an std::string
28 // but doesn't include the build or service pack. That function 29 // but doesn't include the build or service pack. That function
29 // is probably the right one to extend, but will require changing 30 // is probably the right one to extend, but will require changing
30 // all the call sites or making it a wrapper around another util. 31 // all the call sites or making it a wrapper around another util.
31 static void SetOSVersion(std::string *os_version); 32 static void SetOSVersion(std::string *os_version);
32 33
33 // Generates bug report data. 34 // Generates bug report data.
(...skipping 14 matching lines...) Expand all
48 class PostCleanup; 49 class PostCleanup;
49 50
50 private: 51 private:
51 static void CreateMimeBoundary(std::string *out); 52 static void CreateMimeBoundary(std::string *out);
52 53
53 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); 54 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil);
54 }; 55 };
55 56
56 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ 57 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_
57 58
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bug_report_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698