Skip to content

Commit

Permalink
Fix for bug 68588" crash occurs if the first run when mode is incognito
Browse files Browse the repository at this point in the history
BUG=68588
TEST=Should not crash in described circumstances
Review URL: http://codereview.chromium.org/6134002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70750 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
georgey@chromium.org committed Jan 7, 2011
1 parent a502bbe commit cbf0e0a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions chrome/browser/autofill/autofill_ie_toolbar_import_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,9 @@ bool ImportCurrentUserProfiles(std::vector<AutoFillProfile>* profiles,
}

bool ImportAutofillDataWin(PersonalDataManager* pdm) {
// In incognito mode we do not have PDM - and we should not import anything.
if (!pdm)
return false;
AutoFillImporter *importer = new AutoFillImporter(pdm);
// importer will self delete.
return importer->ImportProfiles();
Expand Down

0 comments on commit cbf0e0a

Please sign in to comment.