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

Unified Diff: ui/base/win/lock_state.cc

Issue 860873002: Continue deleting code in ui/. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: 2015 Created 5 years, 11 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 | « ui/base/win/lock_state.h ('k') | ui/base/win/message_box_win.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/base/win/lock_state.cc
diff --git a/ui/base/win/lock_state.cc b/ui/base/win/lock_state.cc
deleted file mode 100644
index c56eae429fc8804660cbd68e0af4371c8f67fe5f..0000000000000000000000000000000000000000
--- a/ui/base/win/lock_state.cc
+++ /dev/null
@@ -1,26 +0,0 @@
-// Copyright 2014 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 "ui/base/win/lock_state.h"
-
-#include <windows.h>
-
-namespace ui {
-
-bool IsWorkstationLocked() {
- bool is_locked = true;
- HDESK input_desk = ::OpenInputDesktop(0, 0, GENERIC_READ);
- if (input_desk) {
- wchar_t name[256] = {0};
- DWORD needed = 0;
- if (::GetUserObjectInformation(
- input_desk, UOI_NAME, name, sizeof(name), &needed)) {
- is_locked = lstrcmpi(name, L"default") != 0;
- }
- ::CloseDesktop(input_desk);
- }
- return is_locked;
-}
-
-} // namespace ui
« no previous file with comments | « ui/base/win/lock_state.h ('k') | ui/base/win/message_box_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698