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

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

Issue 9623027: Move --user-agent overriding logic from chrome into content. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: rebase Created 8 years, 8 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 | « content/shell/shell_content_client.h ('k') | content/test/test_content_client.h » ('j') | 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "ui/base/resource/resource_bundle.h" 8 #include "ui/base/resource/resource_bundle.h"
9 #include "webkit/glue/user_agent.h" 9 #include "webkit/glue/user_agent.h"
10 10
(...skipping 18 matching lines...) Expand all
29 29
30 bool ShellContentClient::HasWebUIScheme(const GURL& url) const { 30 bool ShellContentClient::HasWebUIScheme(const GURL& url) const {
31 // There are no WebUI URLs in content_shell. 31 // There are no WebUI URLs in content_shell.
32 return false; 32 return false;
33 } 33 }
34 34
35 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) { 35 bool ShellContentClient::CanHandleWhileSwappedOut(const IPC::Message& msg) {
36 return false; 36 return false;
37 } 37 }
38 38
39 std::string ShellContentClient::GetUserAgent(bool* overriding) const { 39 std::string ShellContentClient::GetUserAgent() const {
40 *overriding = false;
41 // The "19" is so that sites that sniff for version think that this is 40 // The "19" is so that sites that sniff for version think that this is
42 // something reasonably current; the "77.34.5" is a hint that this isn't a 41 // something reasonably current; the "77.34.5" is a hint that this isn't a
43 // standard Chrome. 42 // standard Chrome.
44 return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5"); 43 return webkit_glue::BuildUserAgentFromProduct("Chrome/19.77.34.5");
45 } 44 }
46 45
47 string16 ShellContentClient::GetLocalizedString(int message_id) const { 46 string16 ShellContentClient::GetLocalizedString(int message_id) const {
48 return string16(); 47 return string16();
49 } 48 }
50 49
(...skipping 10 matching lines...) Expand all
61 60
62 #if defined(OS_MACOSX) 61 #if defined(OS_MACOSX)
63 bool ShellContentClient::GetSandboxProfileForSandboxType( 62 bool ShellContentClient::GetSandboxProfileForSandboxType(
64 int sandbox_type, 63 int sandbox_type,
65 int* sandbox_profile_resource_id) const { 64 int* sandbox_profile_resource_id) const {
66 return false; 65 return false;
67 } 66 }
68 #endif 67 #endif
69 68
70 } // namespace content 69 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/shell_content_client.h ('k') | content/test/test_content_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698