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

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

Issue 7980044: Use Chrome's user agent string for content_shell, since some sites (i.e. Gmail) give a degraded e... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
9 namespace content { 10 namespace content {
10 11
11 ShellContentClient::~ShellContentClient() { 12 ShellContentClient::~ShellContentClient() {
12 } 13 }
13 14
14 void ShellContentClient::SetActiveURL(const GURL& url) { 15 void ShellContentClient::SetActiveURL(const GURL& url) {
15 } 16 }
16 17
17 void ShellContentClient::SetGpuInfo(const GPUInfo& gpu_info) { 18 void ShellContentClient::SetGpuInfo(const GPUInfo& gpu_info) {
18 } 19 }
19 20
20 void ShellContentClient::AddPepperPlugins( 21 void ShellContentClient::AddPepperPlugins(
21 std::vector<PepperPluginInfo>* plugins) { 22 std::vector<PepperPluginInfo>* plugins) {
22 } 23 }
23 24
24 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) { 25 bool ShellContentClient::CanSendWhileSwappedOut(const IPC::Message* msg) {
25 return false; 26 return false;
26 } 27 }
27 28
28 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 29 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
29 return false; 30 return false;
30 } 31 }
31 32
32 std::string ShellContentClient::GetUserAgent(bool mimic_windows) const { 33 std::string ShellContentClient::GetUserAgent(bool mimic_windows) const {
33 return std::string(); 34 return webkit_glue::BuildUserAgentHelper(mimic_windows, "Chrome/15.16.17.18");
34 } 35 }
35 36
36 string16 ShellContentClient::GetLocalizedString(int message_id) const { 37 string16 ShellContentClient::GetLocalizedString(int message_id) const {
37 return string16(); 38 return string16();
38 } 39 }
39 40
40 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const { 41 base::StringPiece ShellContentClient::GetDataResource(int resource_id) const {
41 return base::StringPiece(); 42 return base::StringPiece();
42 } 43 }
43 44
44 #if defined(OS_WIN) 45 #if defined(OS_WIN)
45 bool ShellContentClient::SandboxPlugin(CommandLine* command_line, 46 bool ShellContentClient::SandboxPlugin(CommandLine* command_line,
46 sandbox::TargetPolicy* policy) { 47 sandbox::TargetPolicy* policy) {
47 return false; 48 return false;
48 } 49 }
49 #endif 50 #endif
50 51
51 } // namespace content 52 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698