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

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

Issue 3181027: Checkin for CL: http://codereview.chromium.org/3061044/show... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 // into a string. We currently have: 57 // into a string. We currently have:
58 // win_util::GetWinVersion returns WinVersion, which is just 58 // win_util::GetWinVersion returns WinVersion, which is just
59 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for 59 // an enum of 2000, XP, 2003, or VISTA. Not enough detail for
60 // bug reports. 60 // bug reports.
61 // base::SysInfo::OperatingSystemVersion returns an std::string 61 // base::SysInfo::OperatingSystemVersion returns an std::string
62 // but doesn't include the build or service pack. That function 62 // but doesn't include the build or service pack. That function
63 // is probably the right one to extend, but will require changing 63 // is probably the right one to extend, but will require changing
64 // all the call sites or making it a wrapper around another util. 64 // all the call sites or making it a wrapper around another util.
65 static void SetOSVersion(std::string *os_version); 65 static void SetOSVersion(std::string *os_version);
66 66
67 // This sets the address of the feedback server to be used by SendReport
68 static void SetFeedbackServer(const std::string& server);
69
67 // Generates bug report data. 70 // Generates bug report data.
68 static void SendReport(Profile* profile, 71 static void SendReport(Profile* profile,
69 const std::string& page_title_text, 72 const std::string& page_title_text,
70 int problem_type, 73 int problem_type,
71 const std::string& page_url_text, 74 const std::string& page_url_text,
72 const std::string& user_email_text,
73 const std::string& description, 75 const std::string& description,
74 const char* png_data, 76 const char* png_data,
75 int png_data_length, 77 int png_data_length,
76 int png_width, 78 int png_width,
77 #if defined(OS_CHROMEOS) 79 #if defined(OS_CHROMEOS)
78 int png_height, 80 int png_height,
79 const std::string& problem_type_text, 81 const std::string& user_email_text,
80 const chromeos::LogDictionaryType* const sys_info); 82 const chromeos::LogDictionaryType* const sys_info);
81 #else 83 #else
82 int png_height); 84 int png_height);
83 #endif 85 #endif
84 86
85 // Redirects the user to Google's phishing reporting page. 87 // Redirects the user to Google's phishing reporting page.
86 static void ReportPhishing(TabContents* currentTab, 88 static void ReportPhishing(TabContents* currentTab,
87 const std::string& phishing_url); 89 const std::string& phishing_url);
88 90
89 class PostCleanup; 91 class PostCleanup;
90 92
91 private: 93 private:
92 // Add a key value pair to the feedback object 94 // Add a key value pair to the feedback object
93 static void AddFeedbackData( 95 static void AddFeedbackData(
94 userfeedback::ExternalExtensionSubmit* feedback_data, 96 userfeedback::ExternalExtensionSubmit* feedback_data,
95 const std::string& key, const std::string& value); 97 const std::string& key, const std::string& value);
96 98
99 static std::string feedback_server_;
100
97 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil); 101 DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil);
98 }; 102 };
99 103
100 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_ 104 #endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/bug_report_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698