| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/feedback_ui.h" | 10 #include "chrome/browser/ui/webui/feedback_ui.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 *link_offset = message.size(); | 37 *link_offset = message.size(); |
| 38 return message; | 38 return message; |
| 39 } | 39 } |
| 40 | 40 |
| 41 string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const { | 41 string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const { |
| 42 return link_text_; | 42 return link_text_; |
| 43 } | 43 } |
| 44 | 44 |
| 45 bool AutofillFeedbackInfoBarDelegate::LinkClicked( | 45 bool AutofillFeedbackInfoBarDelegate::LinkClicked( |
| 46 WindowOpenDisposition disposition) { | 46 WindowOpenDisposition disposition) { |
| 47 browser::ShowHtmlFeedbackView( | 47 browser::ShowWebFeedbackView( |
| 48 Browser::GetBrowserForController( | 48 Browser::GetBrowserForController( |
| 49 &owner()->web_contents()->GetController(), NULL), | 49 &owner()->web_contents()->GetController(), NULL), |
| 50 feedback_message_, | 50 feedback_message_, |
| 51 std::string(kCategoryTagAutofill)); | 51 std::string(kCategoryTagAutofill)); |
| 52 return true; | 52 return true; |
| 53 } | 53 } |
| OLD | NEW |