summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/browser_test_helper.h
diff options
context:
space:
mode:
authordhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 02:47:37 +0000
committerdhollowa@chromium.org <dhollowa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-05-05 02:47:37 +0000
commitf749da537323d5dd900e636edeb111d8f52e7e9d (patch)
tree2d1da8ab40e8dc3aec06d53f29d2423702021d02 /chrome/browser/cocoa/browser_test_helper.h
parentcd69619bc053d527b7c82aac81c605157b28d01f (diff)
downloadchromium_src-f749da537323d5dd900e636edeb111d8f52e7e9d.zip
chromium_src-f749da537323d5dd900e636edeb111d8f52e7e9d.tar.gz
chromium_src-f749da537323d5dd900e636edeb111d8f52e7e9d.tar.bz2
AutoFill profile shouldn't be saved when cancelled during initial setup.
Relanding after revert of: 46424 http://codereview.chromium.org/1902003 Fixing compile error on Windows. For first encounter with fillable form, the AutoFillManager::OnInfoBarAccepted() call now passes the new profile and credit card information to the dialog directly instead of saving it to the database and then invoking the dialog. This facilitates "Cancel" in the dialog where the new information is not persisted. This was a good opportunity to refactor the deferred PersonalDataManager::Observer() logic out of the preferences dialog and into the AutoFillDialogController itself. This also consolidates the Windows, Mac, and Linux interfaces for the ShowAutoFillDialog() call. More work is required on Linux and Windows to properly conform to this interface and fix bug 41010. The Linux and Windows implementations will need to respect the new input parameters |imported_profile| and |imported_credit_card|. BUG=41010 TEST=AutoFillDialogControllerTest.WaitForDataToLoad, AutoFillDialogControllerTest.ImportedParameters Review URL: http://codereview.chromium.org/1952002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@46430 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/cocoa/browser_test_helper.h')
-rw-r--r--chrome/browser/cocoa/browser_test_helper.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/cocoa/browser_test_helper.h b/chrome/browser/cocoa/browser_test_helper.h
index b7e3e64..8869aad 100644
--- a/chrome/browser/cocoa/browser_test_helper.h
+++ b/chrome/browser/cocoa/browser_test_helper.h
@@ -37,7 +37,7 @@ class BrowserTestHelper {
browser_.reset(new Browser(Browser::TYPE_NORMAL, profile_.get()));
}
- ~BrowserTestHelper() {
+ virtual ~BrowserTestHelper() {
// Delete the testing profile on the UI thread. But first release the
// browser, since it may trigger accesses to the profile upon destruction.
browser_.reset(NULL);
@@ -45,7 +45,7 @@ class BrowserTestHelper {
message_loop_.RunAllPending();
}
- TestingProfile* profile() const { return profile_.get(); }
+ virtual TestingProfile* profile() const { return profile_.get(); }
Browser* browser() const { return browser_.get(); }
// Creates the browser window. To close this window call |CloseBrowserWindow|.