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

Unified Diff: chrome/browser/net/chrome_url_request_context.cc

Issue 9810022: Remove DONTUSEME_GetCookieStore(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 9 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/net/chrome_url_request_context.h ('k') | content/shell/shell_url_request_context_getter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/chrome_url_request_context.cc
diff --git a/chrome/browser/net/chrome_url_request_context.cc b/chrome/browser/net/chrome_url_request_context.cc
index 9030a4fe548d563d91ad0593bb548bacf1639a9d..96bdde42b026b505ca109834e25b2ca371a0ed10 100644
--- a/chrome/browser/net/chrome_url_request_context.cc
+++ b/chrome/browser/net/chrome_url_request_context.cc
@@ -8,7 +8,6 @@
#include "base/compiler_specific.h"
#include "base/message_loop.h"
#include "base/message_loop_proxy.h"
-#include "base/synchronization/waitable_event.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/io_thread.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -147,30 +146,6 @@ net::URLRequestContext* ChromeURLRequestContextGetter::GetURLRequestContext() {
return url_request_context_;
}
-net::CookieStore* ChromeURLRequestContextGetter::DONTUSEME_GetCookieStore() {
- // If we are running on the IO thread this is real easy.
- if (BrowserThread::CurrentlyOn(BrowserThread::IO))
- return GetURLRequestContext()->cookie_store();
-
- // If we aren't running on the IO thread, we cannot call
- // GetURLRequestContext(). Instead we will post a task to the IO loop
- // and wait for it to complete.
-
- base::WaitableEvent completion(false, false);
- net::CookieStore* result = NULL;
-
- BrowserThread::PostTask(
- BrowserThread::IO, FROM_HERE,
- base::Bind(&ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper,
- this,
- &completion,
- &result));
-
- completion.Wait();
- DCHECK(result);
- return result;
-}
-
scoped_refptr<base::MessageLoopProxy>
ChromeURLRequestContextGetter::GetIOMessageLoopProxy() const {
return BrowserThread::GetMessageLoopProxyForThread(BrowserThread::IO);
@@ -335,14 +310,6 @@ void ChromeURLRequestContextGetter::OnClearSiteDataOnExitChange(
cookie_monster->SetClearPersistentStoreOnExit(clear_site_data);
}
-void ChromeURLRequestContextGetter::GetCookieStoreAsyncHelper(
- base::WaitableEvent* completion,
- net::CookieStore** result) {
- // Note that CookieStore is refcounted, yet we do not add a reference.
- *result = GetURLRequestContext()->cookie_store();
- completion->Signal();
-}
-
// ----------------------------------------------------------------------------
// ChromeURLRequestContext
// ----------------------------------------------------------------------------
« no previous file with comments | « chrome/browser/net/chrome_url_request_context.h ('k') | content/shell/shell_url_request_context_getter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698