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..019791f19a3d4a391f103c540f5b8985765b1266 100644 |
--- a/chrome/browser/ui/webui/options/cookies_view_handler.cc |
+++ b/chrome/browser/ui/webui/options/cookies_view_handler.cc |
@@ -142,7 +142,7 @@ void CookiesViewHandler::TreeModelEndBatch(CookiesTreeModel* model) { |
void CookiesViewHandler::EnsureCookiesTreeModelCreated() { |
if (!cookies_tree_model_.get()) { |
- Profile* profile = web_ui_->GetProfile(); |
+ Profile* profile = Profile::FromWebUI(web_ui_); |
cookies_tree_model_.reset(new CookiesTreeModel( |
profile->GetRequestContext()->DONTUSEME_GetCookieStore()-> |
GetCookieMonster(), |