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

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

Issue 1540973003: Switch to standard integer types in win8/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
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 <stdint.h>
8
7 #include "base/command_line.h" 9 #include "base/command_line.h"
8 #include "base/strings/string_number_conversions.h" 10 #include "base/strings/string_number_conversions.h"
9 #include "base/strings/string_split.h" 11 #include "base/strings/string_split.h"
10 #include "base/win/windows_version.h" 12 #include "base/win/windows_version.h"
11 #include "chrome/common/chrome_switches.h" 13 #include "chrome/common/chrome_switches.h"
12 #include "win8/delegate_execute/delegate_execute_util.h" 14 #include "win8/delegate_execute/delegate_execute_util.h"
13 15
14 namespace delegate_execute { 16 namespace delegate_execute {
15 17
16 DelegateExecuteOperation::DelegateExecuteOperation() 18 DelegateExecuteOperation::DelegateExecuteOperation()
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 operation_type_ = RELAUNCH_CHROME; 52 operation_type_ = RELAUNCH_CHROME;
51 return true; 53 return true;
52 } 54 }
53 55
54 base::Process DelegateExecuteOperation::GetParent() const { 56 base::Process DelegateExecuteOperation::GetParent() const {
55 std::vector<base::StringPiece16> parts = base::SplitStringPiece( 57 std::vector<base::StringPiece16> parts = base::SplitStringPiece(
56 mutex_, L".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL); 58 mutex_, L".", base::TRIM_WHITESPACE, base::SPLIT_WANT_ALL);
57 if (parts.size() != 3) 59 if (parts.size() != 3)
58 return base::Process(); 60 return base::Process();
59 DWORD pid; 61 DWORD pid;
60 if (!base::StringToUint(parts[2], reinterpret_cast<uint32*>(&pid))) 62 if (!base::StringToUint(parts[2], reinterpret_cast<uint32_t*>(&pid)))
61 return base::Process(); 63 return base::Process();
62 return base::Process::Open(pid); 64 return base::Process::Open(pid);
63 } 65 }
64 66
65 } // namespace delegate_execute 67 } // namespace delegate_execute
OLDNEW
« no previous file with comments | « win8/delegate_execute/delegate_execute_operation.h ('k') | win8/metro_driver/chrome_app_view_ash.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698