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

Side by Side Diff: content/renderer/renderer_webcookiejar_impl.cc

Issue 372093002: Fixes for re-enabling more MSVC level 4 warnings: content/renderer/ edition (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review comment Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "content/renderer/renderer_webcookiejar_impl.h" 5 #include "content/renderer/renderer_webcookiejar_impl.h"
6 6
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "content/common/cookie_data.h" 8 #include "content/common/cookie_data.h"
9 #include "content/common/view_messages.h" 9 #include "content/common/view_messages.h"
10 #include "content/public/renderer/content_renderer_client.h" 10 #include "content/public/renderer/content_renderer_client.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 } 62 }
63 63
64 void RendererWebCookieJarImpl::deleteCookie( 64 void RendererWebCookieJarImpl::deleteCookie(
65 const WebURL& url, const WebString& cookie_name) { 65 const WebURL& url, const WebString& cookie_name) {
66 std::string cookie_name_utf8 = base::UTF16ToUTF8(cookie_name); 66 std::string cookie_name_utf8 = base::UTF16ToUTF8(cookie_name);
67 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8)); 67 sender_->Send(new ViewHostMsg_DeleteCookie(url, cookie_name_utf8));
68 } 68 }
69 69
70 bool RendererWebCookieJarImpl::cookiesEnabled( 70 bool RendererWebCookieJarImpl::cookiesEnabled(
71 const WebURL& url, const WebURL& first_party_for_cookies) { 71 const WebURL& url, const WebURL& first_party_for_cookies) {
72 bool cookies_enabled; 72 bool cookies_enabled = false;
73 sender_->Send(new ViewHostMsg_CookiesEnabled( 73 sender_->Send(new ViewHostMsg_CookiesEnabled(
74 sender_->GetRoutingID(), url, first_party_for_cookies, &cookies_enabled)); 74 sender_->GetRoutingID(), url, first_party_for_cookies, &cookies_enabled));
75 return cookies_enabled; 75 return cookies_enabled;
76 } 76 }
77 77
78 } // namespace content 78 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/renderer_clipboard_client.cc ('k') | content/renderer/renderer_webkitplatformsupport_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698