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

Unified Diff: content/common/child_process_info.h

Issue 7583016: wstring: remove wstrings from ChildProcessInfo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/common/child_process_info.h
diff --git a/content/common/child_process_info.h b/content/common/child_process_info.h
index 4b709bdb292d512e8aeb5b4bee44600c9bc44f82..a0c8c27f82c49206ce505f9f8771bcd7d5ca60eb 100644
--- a/content/common/child_process_info.h
+++ b/content/common/child_process_info.h
@@ -60,11 +60,11 @@ class ChildProcessInfo {
// Returns the name of the process. i.e. for plugins it might be Flash, while
// for workers it might be the domain that it's from.
- std::wstring name() const { return name_; }
+ const string16& name() const { return name_; }
// Returns the version of the exe, this only appliest to plugins. Otherwise
// the string is empty.
- std::wstring version() const { return version_; }
+ const string16& version() const { return version_; }
// Getter to the process handle.
base::ProcessHandle handle() const { return process_.handle(); }
@@ -120,15 +120,15 @@ class ChildProcessInfo {
void set_type(ProcessType type) { type_ = type; }
void set_renderer_type(RendererProcessType type) { renderer_type_ = type; }
- void set_name(const std::wstring& name) { name_ = name; }
- void set_version(const std::wstring& ver) { version_ = ver; }
+ void set_name(const string16& name) { name_ = name; }
+ void set_version(const string16& ver) { version_ = ver; }
void set_handle(base::ProcessHandle handle) { process_.set_handle(handle); }
private:
ProcessType type_;
RendererProcessType renderer_type_;
- std::wstring name_;
- std::wstring version_;
+ string16 name_;
+ string16 version_;
int id_;
// The handle to the process.
« no previous file with comments | « content/browser/worker_host/worker_process_host.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698