OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "base/memory/scoped_ptr.h" | 5 #include "base/memory/scoped_ptr.h" |
6 #include "chrome/browser/browser_process.h" | 6 #include "chrome/browser/browser_process.h" |
7 #include "chrome/browser/ui/browser.h" | 7 #include "chrome/browser/ui/browser.h" |
8 #include "chrome/browser/ui/browser_tabstrip.h" | 8 #include "chrome/browser/ui/browser_tabstrip.h" |
9 #include "chrome/browser/ui/tabs/tab_strip_model.h" | 9 #include "chrome/browser/ui/tabs/tab_strip_model.h" |
10 #include "chrome/common/url_constants.h" | 10 #include "chrome/common/url_constants.h" |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
58 // instance. | 58 // instance. |
59 class TestContentAutofillDriver : public ContentAutofillDriver { | 59 class TestContentAutofillDriver : public ContentAutofillDriver { |
60 public: | 60 public: |
61 TestContentAutofillDriver(content::WebContents* web_contents, | 61 TestContentAutofillDriver(content::WebContents* web_contents, |
62 AutofillClient* client) | 62 AutofillClient* client) |
63 : ContentAutofillDriver( | 63 : ContentAutofillDriver( |
64 web_contents, | 64 web_contents, |
65 client, | 65 client, |
66 g_browser_process->GetApplicationLocale(), | 66 g_browser_process->GetApplicationLocale(), |
67 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER) {} | 67 AutofillManager::ENABLE_AUTOFILL_DOWNLOAD_MANAGER) {} |
68 virtual ~TestContentAutofillDriver() {} | 68 ~TestContentAutofillDriver() override {} |
69 | 69 |
70 private: | 70 private: |
71 DISALLOW_COPY_AND_ASSIGN(TestContentAutofillDriver); | 71 DISALLOW_COPY_AND_ASSIGN(TestContentAutofillDriver); |
72 }; | 72 }; |
73 | 73 |
74 } // namespace | 74 } // namespace |
75 | 75 |
76 class ContentAutofillDriverBrowserTest : public InProcessBrowserTest, | 76 class ContentAutofillDriverBrowserTest : public InProcessBrowserTest, |
77 public content::WebContentsObserver { | 77 public content::WebContentsObserver { |
78 public: | 78 public: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL), | 150 browser()->OpenURL(content::OpenURLParams(GURL(chrome::kChromeUIAboutURL), |
151 content::Referrer(), | 151 content::Referrer(), |
152 CURRENT_TAB, | 152 CURRENT_TAB, |
153 ui::PAGE_TRANSITION_TYPED, | 153 ui::PAGE_TRANSITION_TYPED, |
154 false)); | 154 false)); |
155 runner->Run(); | 155 runner->Run(); |
156 nav_entry_committed_callback_.Reset(); | 156 nav_entry_committed_callback_.Reset(); |
157 } | 157 } |
158 | 158 |
159 } // namespace autofill | 159 } // namespace autofill |
OLD | NEW |