| Index: chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc
|
| diff --git a/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc b/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc
|
| index 74e7c9d9b3f2f74aa6dcf977efe9511877900925..196b6a0ad92b5354d8544e2b9deb052834a3060a 100644
|
| --- a/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc
|
| +++ b/chrome/browser/chromeos/policy/cloud_external_data_policy_observer.cc
|
| @@ -158,12 +158,9 @@ void CloudExternalDataPolicyObserver::Observe(
|
| int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| - if (type != chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED) {
|
| - NOTREACHED();
|
| - return;
|
| - }
|
| - Profile* profile = content::Details<Profile>(details).ptr();
|
| + DCHECK_EQ(chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, type);
|
|
|
| + Profile* profile = content::Details<Profile>(details).ptr();
|
| const user_manager::User* user =
|
| chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
|
| if (!user) {
|
|
|