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

Unified Diff: base/test/test_process_killer_win.cc

Issue 93903011: Remove 'using base::string16;' from base/strings/string16.h and remove temporary (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: asdf Created 7 years 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 | « base/strings/string16.h ('k') | base/test/test_reg_util_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/test/test_process_killer_win.cc
diff --git a/base/test/test_process_killer_win.cc b/base/test/test_process_killer_win.cc
index 5e9cc5274c6916dd74f5b1d8d1f41aa52c88cc95..bb7325162680bcea0673bf5768c615ba867d5320 100644
--- a/base/test/test_process_killer_win.cc
+++ b/base/test/test_process_killer_win.cc
@@ -38,7 +38,7 @@ static bool GetQIP(NtQueryInformationProcess** qip_func_ptr) {
}
// Get the command line of a process
-bool GetCommandLineForProcess(uint32 process_id, string16* cmd_line) {
+bool GetCommandLineForProcess(uint32 process_id, base::string16* cmd_line) {
DCHECK(process_id != 0);
DCHECK(cmd_line);
@@ -93,7 +93,7 @@ bool GetCommandLineForProcess(uint32 process_id, string16* cmd_line) {
// Copy all the process parameters into a buffer.
bool success = false;
- string16 buffer;
+ base::string16 buffer;
if (process_params_address) {
SIZE_T bytes_read;
RTL_USER_PROCESS_PARAMETERS params = { 0 };
@@ -130,28 +130,28 @@ bool GetCommandLineForProcess(uint32 process_id, string16* cmd_line) {
// Used to filter processes by process ID.
class ArgumentFilter : public base::ProcessFilter {
public:
- explicit ArgumentFilter(const string16& argument)
+ explicit ArgumentFilter(const base::string16& argument)
: argument_to_find_(argument) {}
// Returns true to indicate set-inclusion and false otherwise. This method
// should not have side-effects and should be idempotent.
virtual bool Includes(const base::ProcessEntry& entry) const {
bool found = false;
- string16 command_line;
+ base::string16 command_line;
if (GetCommandLineForProcess(entry.pid(), &command_line)) {
- string16::const_iterator it =
+ base::string16::const_iterator it =
std::search(command_line.begin(),
command_line.end(),
argument_to_find_.begin(),
argument_to_find_.end(),
- base::CaseInsensitiveCompareASCII<wchar_t>());
+ base::CaseInsensitiveCompareASCII<wchar_t>());
found = (it != command_line.end());
}
return found;
}
protected:
- string16 argument_to_find_;
+ base::string16 argument_to_find_;
};
} // namespace
« no previous file with comments | « base/strings/string16.h ('k') | base/test/test_reg_util_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698