| Index: content/public/browser/browser_context.cc
|
| ===================================================================
|
| --- content/public/browser/browser_context.cc (revision 121897)
|
| +++ content/public/browser/browser_context.cc (working copy)
|
| @@ -4,20 +4,20 @@
|
|
|
| #include "content/public/browser/browser_context.h"
|
|
|
| -#include "base/logging.h"
|
| -#include "content/public/browser/browser_thread.h"
|
| -#include "content/public/browser/notification_details.h"
|
| -#include "content/public/browser/notification_service.h"
|
| -#include "content/public/browser/notification_source.h"
|
| -#include "content/public/browser/notification_types.h"
|
| -
|
| namespace content {
|
|
|
| +BrowserContext::UserData* BrowserContext::GetUserData(const void* key) const {
|
| + UserDataMap::const_iterator found = user_data_.find(key);
|
| + if (found != user_data_.end())
|
| + return found->second.get();
|
| + return NULL;
|
| +}
|
| +
|
| +void BrowserContext::SetUserData(const void* key, UserData* data) {
|
| + user_data_[key] = linked_ptr<UserData>(data);
|
| +}
|
| +
|
| BrowserContext::~BrowserContext() {
|
| - NotificationService::current()->Notify(
|
| - content::NOTIFICATION_BROWSER_CONTEXT_DESTRUCTION,
|
| - content::Source<BrowserContext>(this),
|
| - content::NotificationService::NoDetails());
|
| }
|
|
|
| } // namespace content
|
|
|