| Index: chrome/browser/ui/webui/options/cookies_view_handler.cc
|
| diff --git a/chrome/browser/ui/webui/options/cookies_view_handler.cc b/chrome/browser/ui/webui/options/cookies_view_handler.cc
|
| index b0460772ea6cad45625db8af0bd04bb119e5499e..3370a69fbec53dae9e7317d69bdc47f684269e6a 100644
|
| --- a/chrome/browser/ui/webui/options/cookies_view_handler.cc
|
| +++ b/chrome/browser/ui/webui/options/cookies_view_handler.cc
|
| @@ -14,6 +14,7 @@
|
| #include "chrome/browser/browsing_data_local_storage_helper.h"
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "chrome/browser/ui/webui/cookies_tree_model_util.h"
|
| +#include "content/browser/tab_contents/tab_contents.h"
|
| #include "grit/generated_resources.h"
|
| #include "net/url_request/url_request_context_getter.h"
|
| #include "ui/base/l10n/l10n_util.h"
|
| @@ -142,7 +143,8 @@ void CookiesViewHandler::TreeModelEndBatch(CookiesTreeModel* model) {
|
|
|
| void CookiesViewHandler::EnsureCookiesTreeModelCreated() {
|
| if (!cookies_tree_model_.get()) {
|
| - Profile* profile = web_ui_->GetProfile();
|
| + Profile* profile =
|
| + Profile::FromBrowserContext(web_ui_->tab_contents()->browser_context());
|
| cookies_tree_model_.reset(new CookiesTreeModel(
|
| profile->GetRequestContext()->DONTUSEME_GetCookieStore()->
|
| GetCookieMonster(),
|
|
|