Browse Source

fix some more compilation errors

Shelley Vohr 7 years ago
parent
commit
233679865b

+ 2 - 4
brightray/browser/url_request_context_getter.cc

@@ -100,8 +100,7 @@ URLRequestContextGetter::Delegate::CreateHttpCacheBackendFactory(
       net::DISK_CACHE,
       net::CACHE_BACKEND_DEFAULT,
       cache_path,
-      max_size,
-      BrowserThread::GetTaskRunnerForThread(BrowserThread::CACHE));
+      max_size);
 }
 
 std::unique_ptr<net::CertVerifier>
@@ -184,8 +183,7 @@ net::URLRequestContext* URLRequestContextGetter::GetURLRequestContext() {
     auto cookie_config = content::CookieStoreConfig(
         cookie_path,
         content::CookieStoreConfig::EPHEMERAL_SESSION_COOKIES,
-        nullptr,
-        delegate_->CreateCookieDelegate());
+        nullptr);
     cookie_config.cookieable_schemes = delegate_->GetCookieableSchemes();
     std::unique_ptr<net::CookieStore> cookie_store =
         content::CreateCookieStore(cookie_config);

+ 1 - 3
brightray/browser/url_request_context_getter.h

@@ -12,6 +12,7 @@
 #include "content/public/browser/browser_context.h"
 #include "content/public/browser/content_browser_client.h"
 #include "net/cookies/cookie_monster.h"
+#include "net/cookies/cookie_store.h"
 #include "net/http/http_cache.h"
 #include "net/http/transport_security_state.h"
 #include "net/http/url_security_manager.h"
@@ -48,9 +49,6 @@ class URLRequestContextGetter : public net::URLRequestContextGetter {
     virtual std::unique_ptr<net::NetworkDelegate> CreateNetworkDelegate() {
       return nullptr;
     }
-    virtual net::CookieMonsterDelegate* CreateCookieDelegate() {
-      return nullptr;
-    }
     virtual std::string GetUserAgent();
     virtual std::unique_ptr<net::URLRequestJobFactory>
     CreateURLRequestJobFactory(content::ProtocolHandlerMap* protocol_handlers);