Handle empty username_hash in ClientCertFilterChromeOS.
commit82065f2b13ce350591d4195b5ee9ff498c2dd31d
authorpneubeck <pneubeck@chromium.org>
Fri, 12 Dec 2014 23:18:27 +0000 (12 15:18 -0800)
committerCommit bot <commit-bot@chromium.org>
Fri, 12 Dec 2014 23:18:44 +0000 (12 23:18 +0000)
tree9d2a2db062dcc273f559472247c439fa8590bad3
parent30ee9094107f43d7335d9d2edff570579f6b41de
Handle empty username_hash in ClientCertFilterChromeOS.

The Init() function did never call back if the username_hash was empty, because GetPrivateSlotForChromeOSUser would return a nullptr and InitIfSlotsAvailable returning consistently false.

Now the callback will be called once GetPrivateSlotForChromeOSUser returned.

This change is on purpose kept minimal to allow merging to M40.

BUG=434205

Review URL: https://codereview.chromium.org/802433002

Cr-Commit-Position: refs/heads/master@{#308191}
chrome/browser/chromeos/net/client_cert_filter_chromeos.cc
chrome/browser/chromeos/net/client_cert_filter_chromeos.h