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

Unified Diff: chrome/browser/autofill/autofill_browsertest.cc

Issue 10956034: Switching from ForXyz naming to FromXyz naming, for consistency. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to head Created 8 years, 3 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/autofill/autofill_browsertest.cc
diff --git a/chrome/browser/autofill/autofill_browsertest.cc b/chrome/browser/autofill/autofill_browsertest.cc
index 652fa28bbe3aec5ac26f26a8a9134dc3770788bc..64096b57e98b91c0a1b81f7b65e5f11fd3e5c8c1 100644
--- a/chrome/browser/autofill/autofill_browsertest.cc
+++ b/chrome/browser/autofill/autofill_browsertest.cc
@@ -135,7 +135,7 @@ class WindowedPersonalDataManagerObserver
const content::NotificationDetails& details) OVERRIDE {
// Accept in the infobar.
infobar_service_ =
- InfoBarService::ForTab(chrome::GetActiveTabContents(browser_));
+ InfoBarService::FromTabContents(chrome::GetActiveTabContents(browser_));
InfoBarDelegate* infobar = infobar_service_->GetInfoBarDelegateAt(0);
ConfirmInfoBarDelegate* confirm_infobar =
@@ -841,7 +841,7 @@ IN_PROC_BROWSER_TEST_F(AutofillTest, AutofillAfterTranslate) {
render_view_host(),
ChromeViewHostMsg_TranslateLanguageDetermined(0, "ja", true));
TranslateInfoBarDelegate* infobar =
- InfoBarService::ForTab(chrome::GetActiveTabContents(browser()))->
+ InfoBarService::FromTabContents(chrome::GetActiveTabContents(browser()))->
GetInfoBarDelegateAt(0)->AsTranslateInfoBarDelegate();
ASSERT_TRUE(infobar != NULL);
@@ -1015,8 +1015,8 @@ IN_PROC_BROWSER_TEST_F(AutofillTest, InvalidCreditCardNumberIsNotAggregated) {
ASSERT_FALSE(CreditCard::IsValidCreditCardNumber(ASCIIToUTF16(card)));
SubmitCreditCard("Bob Smith", card.c_str(), "12", "2014");
ASSERT_EQ(0u,
- InfoBarService::ForTab(chrome::GetActiveTabContents(browser()))->
- GetInfoBarCount());
+ InfoBarService::FromTabContents(
+ chrome::GetActiveTabContents(browser()))->GetInfoBarCount());
}
// Test whitespaces and separator chars are stripped for valid CC numbers.
@@ -1229,8 +1229,8 @@ IN_PROC_BROWSER_TEST_F(AutofillTest, CCInfoNotStoredWhenAutocompleteOff) {
FillFormAndSubmit("cc_autocomplete_off_test.html", data);
ASSERT_EQ(0u,
- InfoBarService::ForTab(chrome::GetActiveTabContents(browser()))->
- GetInfoBarCount());
+ InfoBarService::FromTabContents(
+ chrome::GetActiveTabContents(browser()))->GetInfoBarCount());
}
// Test that Autofill does not fill in read-only fields.
« no previous file with comments | « chrome/browser/autofill/autocomplete_history_manager.cc ('k') | chrome/browser/autofill/autofill_common_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698