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

Issue 7031038: Protect against NULL PasswordStore (Closed)

Created:
9 years, 7 months ago by stevenjb
Modified:
9 years, 7 months ago
CC:
chromium-reviews
Visibility:
Public.

Description

Protect against NULL PasswordStore BUG=chromium-os:13799 TEST=See issue Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=86459

Patch Set 1 #

Patch Set 2 : Added NOTREACHED if no PasswordStore. #

Total comments: 1

Patch Set 3 : Revert NOTREACHED changes. #

Patch Set 4 : Add comment; Check for NULL PasswordStore in TestingAutomationProvider. #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+29 lines, -5 lines) Patch
M chrome/browser/automation/testing_automation_provider.cc View 1 2 3 2 chunks +9 lines, -1 line 1 comment Download
M chrome/browser/profiles/profile.h View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/password_manager_handler.cc View 2 5 chunks +18 lines, -4 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
stevenjb
9 years, 7 months ago (2011-05-18 02:40:16 UTC) #1
stevenjb
PasswordManagerHandler is crashing when web_ui_->GetProfile()->GetPasswordStore() returns NULL, which can happen when ProfileImpl::CreatePasswordStore() fails to initialize ...
9 years, 7 months ago (2011-05-18 02:45:44 UTC) #2
Sheridan Rawlins
If this is a "best guess" can we get NOTREACHED()'s in there so that if ...
9 years, 7 months ago (2011-05-18 04:09:26 UTC) #3
stevenjb
We know that this is happening sometimes, but agreed that adding NOTREACHED could be helpful ...
9 years, 7 months ago (2011-05-18 17:41:43 UTC) #4
James Hawkins
http://codereview.chromium.org/7031038/diff/5001/chrome/browser/ui/webui/options/password_manager_handler.cc File chrome/browser/ui/webui/options/password_manager_handler.cc (right): http://codereview.chromium.org/7031038/diff/5001/chrome/browser/ui/webui/options/password_manager_handler.cc#newcode83 chrome/browser/ui/webui/options/password_manager_handler.cc:83: NOTREACHED(); I'm not a fan of the NOTREACHEDs. This ...
9 years, 7 months ago (2011-05-18 17:52:27 UTC) #5
stevenjb
After consideration I agree with James. We already LOG(ERROR) when we fail to init the ...
9 years, 7 months ago (2011-05-20 01:18:57 UTC) #6
Sheridan Rawlins
Ok, this makes sense. So handling this gracefully is definitely a step in the right ...
9 years, 7 months ago (2011-05-20 07:28:03 UTC) #7
James Hawkins
LGTM http://codereview.chromium.org/7031038/diff/9002/chrome/browser/automation/testing_automation_provider.cc File chrome/browser/automation/testing_automation_provider.cc (right): http://codereview.chromium.org/7031038/diff/9002/chrome/browser/automation/testing_automation_provider.cc#newcode3610 chrome/browser/automation/testing_automation_provider.cc:3610: reply.SendError("Unable to get password store."); This is likely ...
9 years, 7 months ago (2011-05-20 22:28:18 UTC) #8
stuartmorgan
9 years, 7 months ago (2011-05-23 16:24:12 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698