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

Unified Diff: base/process_info_win.cc

Issue 19519008: Move the remaning base/process* files into base/process/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: '' Created 7 years, 5 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 | « base/process_info_mac.cc ('k') | base/process_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process_info_win.cc
diff --git a/base/process_info_win.cc b/base/process_info_win.cc
deleted file mode 100644
index 04c6c2f6f4388a0f0d6562b8b5d52d0ac3a88d07..0000000000000000000000000000000000000000
--- a/base/process_info_win.cc
+++ /dev/null
@@ -1,37 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "base/process_info.h"
-
-#include <windows.h>
-
-#include "base/basictypes.h"
-#include "base/time/time.h"
-
-namespace {
-
-using base::Time;
-
-// Returns the process creation time, or NULL if an error occurred.
-Time* ProcessCreationTimeInternal() {
- FILETIME creation_time = {};
- FILETIME ignore = {};
- if (::GetProcessTimes(::GetCurrentProcess(), &creation_time, &ignore,
- &ignore, &ignore) == false)
- return NULL;
-
- return new Time(Time::FromFileTime(creation_time));
-}
-
-} // namespace
-
-namespace base {
-
-//static
-const Time* CurrentProcessInfo::CreationTime() {
- static Time* process_creation_time = ProcessCreationTimeInternal();
- return process_creation_time;
-}
-
-} // namespace base
« no previous file with comments | « base/process_info_mac.cc ('k') | base/process_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698