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

Side by Side Diff: content/shell/app/shell_breakpad_client.cc

Issue 121033002: Update uses of UTF conversions in content/ to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 12 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/app/shell_breakpad_client.h" 5 #include "content/shell/app/shell_breakpad_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/strings/string16.h" 9 #include "base/strings/string16.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
11 #include "content/public/common/content_switches.h" 11 #include "content/public/common/content_switches.h"
12 #include "content/shell/common/shell_switches.h" 12 #include "content/shell/common/shell_switches.h"
13 13
14 #if defined(OS_ANDROID) 14 #if defined(OS_ANDROID)
15 #include "content/shell/android/shell_descriptors.h" 15 #include "content/shell/android/shell_descriptors.h"
16 #endif 16 #endif
17 17
18 namespace content { 18 namespace content {
19 19
20 ShellBreakpadClient::ShellBreakpadClient() {} 20 ShellBreakpadClient::ShellBreakpadClient() {}
21 ShellBreakpadClient::~ShellBreakpadClient() {} 21 ShellBreakpadClient::~ShellBreakpadClient() {}
22 22
23 #if defined(OS_WIN) 23 #if defined(OS_WIN)
24 void ShellBreakpadClient::GetProductNameAndVersion( 24 void ShellBreakpadClient::GetProductNameAndVersion(
25 const base::FilePath& exe_path, 25 const base::FilePath& exe_path,
26 base::string16* product_name, 26 base::string16* product_name,
27 base::string16* version, 27 base::string16* version,
28 base::string16* special_build, 28 base::string16* special_build,
29 base::string16* channel_name) { 29 base::string16* channel_name) {
30 *product_name = ASCIIToUTF16("content_shell"); 30 *product_name = base::ASCIIToUTF16("content_shell");
31 *version = ASCIIToUTF16(CONTENT_SHELL_VERSION); 31 *version = base::ASCIIToUTF16(CONTENT_SHELL_VERSION);
32 *special_build = base::string16(); 32 *special_build = base::string16();
33 *channel_name = base::string16(); 33 *channel_name = base::string16();
34 } 34 }
35 #endif 35 #endif
36 36
37 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS) 37 #if defined(OS_POSIX) && !defined(OS_MACOSX) && !defined(OS_IOS)
38 void ShellBreakpadClient::GetProductNameAndVersion(std::string* product_name, 38 void ShellBreakpadClient::GetProductNameAndVersion(std::string* product_name,
39 std::string* version) { 39 std::string* version) {
40 *product_name = "content_shell"; 40 *product_name = "content_shell";
41 *version = CONTENT_SHELL_VERSION; 41 *version = CONTENT_SHELL_VERSION;
(...skipping 21 matching lines...) Expand all
63 bool ShellBreakpadClient::EnableBreakpadForProcess( 63 bool ShellBreakpadClient::EnableBreakpadForProcess(
64 const std::string& process_type) { 64 const std::string& process_type) {
65 return process_type == switches::kRendererProcess || 65 return process_type == switches::kRendererProcess ||
66 process_type == switches::kPluginProcess || 66 process_type == switches::kPluginProcess ||
67 process_type == switches::kPpapiPluginProcess || 67 process_type == switches::kPpapiPluginProcess ||
68 process_type == switches::kZygoteProcess || 68 process_type == switches::kZygoteProcess ||
69 process_type == switches::kGpuProcess; 69 process_type == switches::kGpuProcess;
70 } 70 }
71 71
72 } // namespace content 72 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/webclipboard_impl.cc ('k') | content/shell/app/webkit_test_platform_support_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698