| Index: chrome/browser/chromeos/drive/drive_integration_service.cc
|
| diff --git a/chrome/browser/chromeos/drive/drive_integration_service.cc b/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| index 00539f139437eb23cd284b13ea201b3cdb887faa..9897800d04ff7409ba8a5ac392c5a6398854d0c5 100644
|
| --- a/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| +++ b/chrome/browser/chromeos/drive/drive_integration_service.cc
|
| @@ -565,13 +565,12 @@ void DriveIntegrationService::Observe(
|
| int type,
|
| const content::NotificationSource& source,
|
| const content::NotificationDetails& details) {
|
| - if (type == chrome::NOTIFICATION_PROFILE_CREATED) {
|
| - Profile* created_profile = content::Source<Profile>(source).ptr();
|
| - if (created_profile->IsOffTheRecord() &&
|
| - created_profile->IsSameProfile(profile_)) {
|
| - download_handler_->ObserveIncognitoDownloadManager(
|
| - BrowserContext::GetDownloadManager(created_profile));
|
| - }
|
| + DCHECK_EQ(chrome::NOTIFICATION_PROFILE_CREATED, type);
|
| + Profile* created_profile = content::Source<Profile>(source).ptr();
|
| + if (created_profile->IsOffTheRecord() &&
|
| + created_profile->IsSameProfile(profile_)) {
|
| + download_handler_->ObserveIncognitoDownloadManager(
|
| + BrowserContext::GetDownloadManager(created_profile));
|
| }
|
| }
|
|
|
|
|