Index: components/autofill/browser/personal_data_manager.cc |
diff --git a/components/autofill/browser/personal_data_manager.cc b/components/autofill/browser/personal_data_manager.cc |
index 1e4d30c2a9a208e8ece39fd0a5733fe2b3415fbb..603a7a373250ab999daa0a6c6b7ba28725013b0f 100644 |
--- a/components/autofill/browser/personal_data_manager.cc |
+++ b/components/autofill/browser/personal_data_manager.cc |
@@ -936,12 +936,8 @@ void PersonalDataManager::CancelPendingQuery( |
void PersonalDataManager::SaveImportedProfile( |
const AutofillProfile& imported_profile) { |
- if (browser_context_->IsOffTheRecord()) { |
- // The |IsOffTheRecord| check should happen earlier in the import process, |
- // upon form submission. |
- NOTREACHED(); |
+ if (browser_context_->IsOffTheRecord()) |
return; |
- } |
// Don't save a web profile if the data in the profile is a subset of an |
// auxiliary profile. |
@@ -961,12 +957,8 @@ void PersonalDataManager::SaveImportedProfile( |
void PersonalDataManager::SaveImportedCreditCard( |
const CreditCard& imported_card) { |
DCHECK(!imported_card.number().empty()); |
- if (browser_context_->IsOffTheRecord()) { |
- // The |IsOffTheRecord| check should happen earlier in the import process, |
- // upon form submission. |
- NOTREACHED(); |
+ if (browser_context_->IsOffTheRecord()) |
return; |
- } |
// Set to true if |imported_card| is merged into the credit card list. |
bool merged = false; |