| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h" | 5 #include "chrome/browser/autofill/autofill_feedback_infobar_delegate.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/browser/infobars/infobar_tab_helper.h" | 8 #include "chrome/browser/infobars/infobar_tab_helper.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "chrome/browser/ui/webui/bug_report_ui.h" | 10 #include "chrome/browser/ui/webui/bug_report_ui.h" |
| 11 #include "chrome/browser/userfeedback/proto/extension.pb.h" | 11 #include "chrome/browser/userfeedback/proto/extension.pb.h" |
| 12 #include "content/browser/tab_contents/navigation_controller.h" | 12 #include "content/public/browser/navigation_controller.h" |
| 13 #include "content/public/browser/navigation_details.h" | 13 #include "content/public/browser/navigation_details.h" |
| 14 #include "content/public/browser/web_contents.h" | 14 #include "content/public/browser/web_contents.h" |
| 15 #include "googleurl/src/gurl.h" | 15 #include "googleurl/src/gurl.h" |
| 16 | 16 |
| 17 AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate( | 17 AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate( |
| 18 InfoBarTabHelper* infobar_helper, | 18 InfoBarTabHelper* infobar_helper, |
| 19 const string16& message, | 19 const string16& message, |
| 20 const string16& link_text, | 20 const string16& link_text, |
| 21 const std::string& feedback_message) | 21 const std::string& feedback_message) |
| 22 : LinkInfoBarDelegate(infobar_helper), | 22 : LinkInfoBarDelegate(infobar_helper), |
| (...skipping 26 matching lines...) Expand all Loading... |
| 49 userfeedback::ChromeBrowserData_ChromeBrowserCategory_AUTOFILL; | 49 userfeedback::ChromeBrowserData_ChromeBrowserCategory_AUTOFILL; |
| 50 #endif | 50 #endif |
| 51 | 51 |
| 52 browser::ShowHtmlBugReportView( | 52 browser::ShowHtmlBugReportView( |
| 53 Browser::GetBrowserForController( | 53 Browser::GetBrowserForController( |
| 54 &owner()->web_contents()->GetController(), NULL), | 54 &owner()->web_contents()->GetController(), NULL), |
| 55 feedback_message_, | 55 feedback_message_, |
| 56 issue_type); | 56 issue_type); |
| 57 return true; | 57 return true; |
| 58 } | 58 } |
| OLD | NEW |