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

Side by Side Diff: chrome/browser/autofill/autofill_feedback_infobar_delegate.cc

Issue 10843071: Create chrome/browser/api directory. Move infobar delegates used by Autofill to the directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments. Created 8 years, 4 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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"
9 #include "chrome/browser/infobars/infobar_tab_helper.h" 8 #include "chrome/browser/infobars/infobar_tab_helper.h"
10 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
11 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
12 #include "chrome/browser/ui/chrome_pages.h" 11 #include "chrome/browser/ui/chrome_pages.h"
13 #include "content/public/browser/navigation_controller.h" 12 #include "content/public/browser/navigation_controller.h"
14 #include "content/public/browser/navigation_details.h" 13 #include "content/public/browser/navigation_details.h"
15 #include "content/public/browser/web_contents.h" 14 #include "content/public/browser/web_contents.h"
16 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
17 16
18 const char kCategoryTagAutofill[] = "Autofill"; 17 const char kCategoryTagAutofill[] = "Autofill";
(...skipping 26 matching lines...) Expand all
45 44
46 bool AutofillFeedbackInfoBarDelegate::LinkClicked( 45 bool AutofillFeedbackInfoBarDelegate::LinkClicked(
47 WindowOpenDisposition disposition) { 46 WindowOpenDisposition disposition) {
48 chrome::ShowFeedbackPage( 47 chrome::ShowFeedbackPage(
49 browser::FindBrowserForController( 48 browser::FindBrowserForController(
50 &owner()->web_contents()->GetController(), NULL), 49 &owner()->web_contents()->GetController(), NULL),
51 feedback_message_, 50 feedback_message_,
52 std::string(kCategoryTagAutofill)); 51 std::string(kCategoryTagAutofill));
53 return true; 52 return true;
54 } 53 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698