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

Side by Side Diff: win8/delegate_execute/delegate_execute_operation.cc

Issue 119733002: Add base:: to string16s in win8/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge 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 unified diff | Download patch | Annotate | Revision Log
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 "win8/delegate_execute/delegate_execute_operation.h" 5 #include "win8/delegate_execute/delegate_execute_operation.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 8 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 9 #include "base/strings/string_split.h"
10 #include "chrome/common/chrome_switches.h" 10 #include "chrome/common/chrome_switches.h"
(...skipping 27 matching lines...) Expand all
38 else if (cmd_line->HasSwitch(switches::kForceImmersive)) 38 else if (cmd_line->HasSwitch(switches::kForceImmersive))
39 the_switch = switches::kForceImmersive; 39 the_switch = switches::kForceImmersive;
40 40
41 relaunch_flags_ = ParametersFromSwitch(the_switch); 41 relaunch_flags_ = ParametersFromSwitch(the_switch);
42 42
43 operation_type_ = RELAUNCH_CHROME; 43 operation_type_ = RELAUNCH_CHROME;
44 return true; 44 return true;
45 } 45 }
46 46
47 DWORD DelegateExecuteOperation::GetParentPid() const { 47 DWORD DelegateExecuteOperation::GetParentPid() const {
48 std::vector<string16> parts; 48 std::vector<base::string16> parts;
49 base::SplitString(mutex_, L'.', &parts); 49 base::SplitString(mutex_, L'.', &parts);
50 if (parts.size() != 3) 50 if (parts.size() != 3)
51 return 0; 51 return 0;
52 DWORD pid; 52 DWORD pid;
53 if (!base::StringToUint(parts[2], reinterpret_cast<uint32*>(&pid))) 53 if (!base::StringToUint(parts[2], reinterpret_cast<uint32*>(&pid)))
54 return 0; 54 return 0;
55 return pid; 55 return pid;
56 } 56 }
57 57
58 } // namespace delegate_execute 58 } // namespace delegate_execute
OLDNEW
« no previous file with comments | « win8/delegate_execute/delegate_execute_operation.h ('k') | win8/delegate_execute/delegate_execute_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698