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

Side by Side Diff: content/shell/shell_content_client.cc

Issue 7922023: Remove webkit_glue::BuildUserAgent(), remove windows spoofing (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge to r102225 Created 9 years, 3 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/shell/shell_content_client.h" 5 #include "content/shell/shell_content_client.h"
6 6
7 #include "base/string_piece.h" 7 #include "base/string_piece.h"
8 #include "webkit/glue/user_agent.h" 8 #include "webkit/glue/user_agent.h"
9 9
10 namespace content { 10 namespace content {
(...skipping 12 matching lines...) Expand all
23 } 23 }
24 24
25 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { 25 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
26 return false; 26 return false;
27 } 27 }
28 28
29 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 29 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
30 return false; 30 return false;
31 } 31 }
32 32
33 std::string ShellContentClient::GetUserAgent(bool mimic_windows) const { 33 std::string ShellContentClient::GetUserAgent(bool* overriding) const {
34 return webkit_glue::BuildUserAgentHelper(mimic_windows, "Chrome/15.16.17.18"); 34 *overriding = false;
35 return std::string("Chrome/15.16.17.18");
35 } 36 }
36 37
37 string16 ShellContentClient::GetLocalizedString(int message_id) const { 38 string16 ShellContentClient::GetLocalizedString(int message_id) const {
38 return string16(); 39 return string16();
39 } 40 }
40 41
41 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const { 42 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const {
42 return base::StringPiece(); 43 return base::StringPiece();
43 } 44 }
44 45
45 #if defined(OS_WIN) 46 #if defined(OS_WIN)
46 bool ShellContentClient::SandboxPlugin(CommandLine* command_line, 47 bool ShellContentClient::SandboxPlugin(CommandLine* command_line,
47 sandbox::TargetPolicy* policy) { 48 sandbox::TargetPolicy* policy) {
48 return false; 49 return false;
49 } 50 }
50 #endif 51 #endif
51 52
52 } // namespace content 53 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698