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/feedback/proto/extension.pb.h" |
8 #include "chrome/browser/infobars/infobar_tab_helper.h" | 9 #include "chrome/browser/infobars/infobar_tab_helper.h" |
9 #include "chrome/browser/ui/browser.h" | 10 #include "chrome/browser/ui/browser.h" |
10 #include "chrome/browser/ui/browser_finder.h" | 11 #include "chrome/browser/ui/browser_finder.h" |
11 #include "chrome/browser/ui/webui/feedback_ui.h" | 12 #include "chrome/browser/ui/chrome_pages.h" |
12 #include "chrome/browser/feedback/proto/extension.pb.h" | |
13 #include "content/public/browser/navigation_controller.h" | 13 #include "content/public/browser/navigation_controller.h" |
14 #include "content/public/browser/navigation_details.h" | 14 #include "content/public/browser/navigation_details.h" |
15 #include "content/public/browser/web_contents.h" | 15 #include "content/public/browser/web_contents.h" |
16 #include "googleurl/src/gurl.h" | 16 #include "googleurl/src/gurl.h" |
17 | 17 |
18 const char kCategoryTagAutofill[] = "Autofill"; | 18 const char kCategoryTagAutofill[] = "Autofill"; |
19 | 19 |
20 AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate( | 20 AutofillFeedbackInfoBarDelegate::AutofillFeedbackInfoBarDelegate( |
21 InfoBarTabHelper* infobar_helper, | 21 InfoBarTabHelper* infobar_helper, |
22 const string16& message, | 22 const string16& message, |
(...skipping 15 matching lines...) Expand all Loading... |
38 *link_offset = message.size(); | 38 *link_offset = message.size(); |
39 return message; | 39 return message; |
40 } | 40 } |
41 | 41 |
42 string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const { | 42 string16 AutofillFeedbackInfoBarDelegate::GetLinkText() const { |
43 return link_text_; | 43 return link_text_; |
44 } | 44 } |
45 | 45 |
46 bool AutofillFeedbackInfoBarDelegate::LinkClicked( | 46 bool AutofillFeedbackInfoBarDelegate::LinkClicked( |
47 WindowOpenDisposition disposition) { | 47 WindowOpenDisposition disposition) { |
48 browser::ShowWebFeedbackView( | 48 chrome::ShowFeedbackPage( |
49 browser::FindBrowserWithWebContents(owner()->web_contents()), | 49 browser::FindBrowserWithWebContents(owner()->web_contents()), |
50 feedback_message_, | 50 feedback_message_, |
51 std::string(kCategoryTagAutofill)); | 51 std::string(kCategoryTagAutofill)); |
52 return true; | 52 return true; |
53 } | 53 } |
OLD | NEW |