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

Unified Diff: chrome/browser/feedback/feedback_util.h

Issue 9006003: Refactor and fix feedback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 2011 -> 2012 Created 8 years, 12 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/feedback/feedback_data.cc ('k') | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/feedback/feedback_util.h
diff --git a/chrome/browser/bug_report_util.h b/chrome/browser/feedback/feedback_util.h
similarity index 84%
rename from chrome/browser/bug_report_util.h
rename to chrome/browser/feedback/feedback_util.h
index e2285b7bd4d6ab9554225aa78e502fd4a5d6d29b..165e5c6c35ebe8881bba232f7f70843fce5cae66 100644
--- a/chrome/browser/bug_report_util.h
+++ b/chrome/browser/feedback/feedback_util.h
@@ -1,18 +1,18 @@
-// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Copyright (c) 2012 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_BUG_REPORT_UTIL_H_
-#define CHROME_BROWSER_BUG_REPORT_UTIL_H_
+#ifndef CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
+#define CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
#pragma once
#include <string>
#include "base/basictypes.h"
+#include "chrome/browser/feedback/proto/common.pb.h"
+#include "chrome/browser/feedback/proto/extension.pb.h"
+#include "chrome/browser/feedback/proto/math.pb.h"
#include "chrome/browser/ui/webui/screenshot_source.h"
-#include "chrome/browser/userfeedback/proto/common.pb.h"
-#include "chrome/browser/userfeedback/proto/extension.pb.h"
-#include "chrome/browser/userfeedback/proto/math.pb.h"
#include "ui/gfx/rect.h"
#if defined(OS_MACOSX)
@@ -30,7 +30,7 @@ namespace content {
class WebContents;
}
-class BugReportUtil {
+class FeedbackUtil {
public:
#if defined(OS_MACOSX)
@@ -66,7 +66,7 @@ class BugReportUtil {
// Generates bug report data.
static void SendReport(
Profile* profile
- , int problem_type
+ , const std::string& category_tag
, const std::string& page_url_text
, const std::string& description
, ScreenshotDataPtr png_data
@@ -93,7 +93,7 @@ class BugReportUtil {
private:
// Add a key value pair to the feedback object
static void AddFeedbackData(
- userfeedback::ExternalExtensionSubmit* feedback_data,
+ userfeedback::ExtensionSubmit* feedback_data,
const std::string& key, const std::string& value);
// Send the feedback report
@@ -104,7 +104,7 @@ class BugReportUtil {
static bool ValidFeedbackSize(const std::string& content);
#endif
- DISALLOW_IMPLICIT_CONSTRUCTORS(BugReportUtil);
+ DISALLOW_IMPLICIT_CONSTRUCTORS(FeedbackUtil);
};
-#endif // CHROME_BROWSER_BUG_REPORT_UTIL_H_
+#endif // CHROME_BROWSER_FEEDBACK_FEEDBACK_UTIL_H_
« no previous file with comments | « chrome/browser/feedback/feedback_data.cc ('k') | chrome/browser/feedback/feedback_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698