Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(334)

Unified Diff: chrome/browser/cookies_table_model.cc

Issue 258008: Move initialization of ChromeURLRequestContexts to the IO thread. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync again, just in case Created 11 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chrome_plugin_host.cc ('k') | chrome/browser/dom_ui/new_tab_page_sync_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/cookies_table_model.cc
===================================================================
--- chrome/browser/cookies_table_model.cc (revision 29872)
+++ chrome/browser/cookies_table_model.cc (working copy)
@@ -8,6 +8,7 @@
#include "app/table_model_observer.h"
#include "app/resource_bundle.h"
#include "base/string_util.h"
+#include "chrome/browser/net/chrome_url_request_context.h"
#include "chrome/browser/profile.h"
#include "grit/generated_resources.h"
#include "grit/theme_resources.h"
@@ -38,9 +39,9 @@
NOTREACHED();
return;
}
-
+ // Since we are running on the UI thread don't call GetURLRequestContext().
net::CookieMonster* monster =
- profile_->GetRequestContext()->cookie_store()->GetCookieMonster();
+ profile_->GetRequestContext()->GetCookieStore()->GetCookieMonster();
// We need to update the searched results list, the full cookie list,
// and the view. We walk through the search results list (which is what
@@ -158,8 +159,11 @@
void CookiesTableModel::LoadCookies() {
// mmargh mmargh mmargh!
+
+ // Since we are running on the UI thread don't call GetURLRequestContext().
net::CookieMonster* cookie_monster =
- profile_->GetRequestContext()->cookie_store()->GetCookieMonster();
+ profile_->GetRequestContext()->GetCookieStore()->GetCookieMonster();
+
all_cookies_ = cookie_monster->GetAllCookies();
DoFilter();
}
« no previous file with comments | « chrome/browser/chrome_plugin_host.cc ('k') | chrome/browser/dom_ui/new_tab_page_sync_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698