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

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

Issue 423613003: Move strings from webkit/ to content/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sort Created 6 years, 4 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/DEPS ('k') | tools/gritsettings/resource_ids » ('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/common/shell_content_client.h" 5 #include "content/shell/common/shell_content_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_piece.h" 8 #include "base/strings/string_piece.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "content/app/strings/grit/content_strings.h"
10 #include "content/public/common/content_switches.h" 11 #include "content/public/common/content_switches.h"
11 #include "content/public/common/user_agent.h" 12 #include "content/public/common/user_agent.h"
12 #include "content/shell/common/shell_switches.h" 13 #include "content/shell/common/shell_switches.h"
13 #include "grit/shell_resources.h" 14 #include "grit/shell_resources.h"
14 #include "grit/webkit_resources.h" 15 #include "grit/webkit_resources.h"
15 #include "grit/webkit_strings.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/base/resource/resource_bundle.h" 17 #include "ui/base/resource/resource_bundle.h"
18 18
19 namespace content { 19 namespace content {
20 20
21 std::string GetShellUserAgent() { 21 std::string GetShellUserAgent() {
22 std::string product = "Chrome/" CONTENT_SHELL_VERSION; 22 std::string product = "Chrome/" CONTENT_SHELL_VERSION;
23 CommandLine* command_line = CommandLine::ForCurrentProcess(); 23 CommandLine* command_line = CommandLine::ForCurrentProcess();
24 if (command_line->HasSwitch(switches::kUseMobileUserAgent)) 24 if (command_line->HasSwitch(switches::kUseMobileUserAgent))
25 product += " Mobile"; 25 product += " Mobile";
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 base::RefCountedStaticMemory* ShellContentClient::GetDataResourceBytes( 82 base::RefCountedStaticMemory* ShellContentClient::GetDataResourceBytes(
83 int resource_id) const { 83 int resource_id) const {
84 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id); 84 return ResourceBundle::GetSharedInstance().LoadDataResourceBytes(resource_id);
85 } 85 }
86 86
87 gfx::Image& ShellContentClient::GetNativeImageNamed(int resource_id) const { 87 gfx::Image& ShellContentClient::GetNativeImageNamed(int resource_id) const {
88 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id); 88 return ResourceBundle::GetSharedInstance().GetNativeImageNamed(resource_id);
89 } 89 }
90 90
91 } // namespace content 91 } // namespace content
OLDNEW
« no previous file with comments | « content/shell/DEPS ('k') | tools/gritsettings/resource_ids » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698