| Index: chrome/browser/notifications/platform_notification_service_impl.cc
|
| diff --git a/chrome/browser/notifications/platform_notification_service_impl.cc b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| index 4edd70ba27455560e8dd8e587cb83eec00304c9f..a868392d23e41138e6fbcf8a338c4908b95a5db2 100644
|
| --- a/chrome/browser/notifications/platform_notification_service_impl.cc
|
| +++ b/chrome/browser/notifications/platform_notification_service_impl.cc
|
| @@ -5,6 +5,7 @@
|
| #include "chrome/browser/notifications/platform_notification_service_impl.h"
|
|
|
| #include <utility>
|
| +#include <vector>
|
|
|
| #include "base/command_line.h"
|
| #include "base/metrics/histogram_macros.h"
|
| @@ -61,6 +62,8 @@ using content::BrowserThread;
|
| using content::PlatformNotificationContext;
|
| using message_center::NotifierId;
|
|
|
| +class ProfileAttributesEntry;
|
| +
|
| namespace {
|
|
|
| // Invalid id for a renderer process. Used in cases where we need to check for
|
| @@ -159,11 +162,11 @@ void PlatformNotificationServiceImpl::ProcessPersistentNotificationOperation(
|
| // if it already exist. We therefore check first that the profile is there
|
| // and fail early otherwise.
|
| const base::FilePath profile_path =
|
| - profile_manager->GetProfileInfoCache().GetUserDataDir().AppendASCII(
|
| - profile_id);
|
| + profile_manager->user_data_dir().AppendASCII(profile_id);
|
|
|
| - if (profile_manager->GetProfileInfoCache().GetIndexOfProfileWithPath(
|
| - profile_path) == std::string::npos) {
|
| + ProfileAttributesEntry* entry = nullptr;
|
| + if (!profile_manager->GetProfileAttributesStorage().
|
| + GetProfileAttributesWithPath(profile_path, &entry)) {
|
| LOG(ERROR) << "Loading a path that does not exist";
|
| return;
|
| }
|
|
|