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

Unified Diff: chrome/browser/autofill/autofill_feedback_infobar_delegate.cc

Issue 9006003: Refactor and fix feedback (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove extra include. Created 9 years 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
Index: chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
diff --git a/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc b/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
index d51736b4487fade82a1b2d678d1e2c05e833cd82..f5a4350f4fedc37bbaea7906bd398f94cc0a6b75 100644
--- a/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
+++ b/chrome/browser/autofill/autofill_feedback_infobar_delegate.cc
@@ -7,12 +7,14 @@
#include "base/utf_string_conversions.h"
#include "chrome/browser/infobars/infobar_tab_helper.h"
#include "chrome/browser/ui/browser.h"
-#include "chrome/browser/ui/webui/bug_report_ui.h"
-#include "chrome/browser/userfeedback/proto/extension.pb.h"
+#include "chrome/browser/ui/webui/feedback_ui.h"
+#include "chrome/browser/feedback/proto/extension.pb.h"
#include "content/browser/tab_contents/navigation_details.h"
#include "content/browser/tab_contents/tab_contents.h"
#include "googleurl/src/gurl.h"
+const char kCategoryTagAutofill[] = "Autofill";
xiyuan 2011/12/22 02:18:23 "static" or anonymous namespace if we don't use it
tfarina 2011/12/22 02:20:43 const has internal linkage so it doesn't need eith
rkc 2011/12/22 22:41:46 Confirmed that the C++ standard does specify inter
+
AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate(
InfoBarTabHelper* infobar_helper,
const string16& message,
@@ -41,17 +43,10 @@ string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const {
bool AutofillFeedbackInfoBarDelegate::LinkClicked(
WindowOpenDisposition disposition) {
-#if defined(OS_CHROMEOS)
- size_t issue_type = userfeedback::ChromeOsData_ChromeOsCategory_AUTOFILL;
-#else
- size_t issue_type =
- userfeedback::ChromeBrowserData_ChromeBrowserCategory_AUTOFILL;
-#endif
-
- browser::ShowHtmlBugReportView(
+ browser::ShowHtmlFeedbackView(
Browser::GetBrowserForController(&owner()->tab_contents()->controller(),
NULL),
feedback_message_,
- issue_type);
+ std::string(kCategoryTagAutofill));
return true;
}

Powered by Google App Engine
This is Rietveld 408576698