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

Unified Diff: chrome/browser/renderer_host/chrome_render_message_filter.cc

Issue 102763005: Remove the ChromeFrame specific cookie code between the renderer and browser process. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years 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
Index: chrome/browser/renderer_host/chrome_render_message_filter.cc
===================================================================
--- chrome/browser/renderer_host/chrome_render_message_filter.cc (revision 240900)
+++ chrome/browser/renderer_host/chrome_render_message_filter.cc (working copy)
@@ -157,22 +157,6 @@
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
-#if defined(ENABLE_AUTOMATION)
- if ((message.type() == ChromeViewHostMsg_GetCookies::ID ||
- message.type() == ChromeViewHostMsg_SetCookie::ID) &&
- AutomationResourceMessageFilter::ShouldFilterCookieMessages(
- render_process_id_, message.routing_id())) {
- // ChromeFrame then we need to get/set cookies from the external host.
- IPC_BEGIN_MESSAGE_MAP_EX(ChromeRenderMessageFilter, message,
- *message_was_ok)
- IPC_MESSAGE_HANDLER_DELAY_REPLY(ChromeViewHostMsg_GetCookies,
- OnGetCookies)
- IPC_MESSAGE_HANDLER(ChromeViewHostMsg_SetCookie, OnSetCookie)
- IPC_END_MESSAGE_MAP()
- handled = true;
- }
-#endif
-
return handled;
}
@@ -655,24 +639,3 @@
kWebGLDebugRendererInfoFieldTrialName) ==
kWebGLDebugRendererInfoFieldTrialEnabledName);
}
-
-void ChromeRenderMessageFilter::OnGetCookies(
- const GURL& url,
- const GURL& first_party_for_cookies,
- IPC::Message* reply_msg) {
-#if defined(ENABLE_AUTOMATION)
- AutomationResourceMessageFilter::GetCookiesForUrl(
- this, request_context_->GetURLRequestContext(), render_process_id_,
- reply_msg, url);
-#endif
-}
-
-void ChromeRenderMessageFilter::OnSetCookie(const IPC::Message& message,
- const GURL& url,
- const GURL& first_party_for_cookies,
- const std::string& cookie) {
-#if defined(ENABLE_AUTOMATION)
- AutomationResourceMessageFilter::SetCookiesForUrl(
- render_process_id_, message.routing_id(), url, cookie);
-#endif
-}
« no previous file with comments | « chrome/browser/renderer_host/chrome_render_message_filter.h ('k') | chrome/common/automation_messages_internal.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698