| Index: sync/util/get_session_name_win.cc
|
| diff --git a/sync/util/get_session_name_win.cc b/sync/util/get_session_name_win.cc
|
| deleted file mode 100644
|
| index 80df90b3616c160d435a162993e116e61033303d..0000000000000000000000000000000000000000
|
| --- a/sync/util/get_session_name_win.cc
|
| +++ /dev/null
|
| @@ -1,29 +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 "sync/util/get_session_name_win.h"
|
| -
|
| -#include <windows.h>
|
| -
|
| -#include "base/logging.h"
|
| -#include "base/macros.h"
|
| -#include "base/strings/utf_string_conversions.h"
|
| -
|
| -namespace syncer {
|
| -namespace internal {
|
| -
|
| -std::string GetComputerName() {
|
| - wchar_t computer_name[MAX_COMPUTERNAME_LENGTH + 1] = {0};
|
| - DWORD size = arraysize(computer_name);
|
| - if (::GetComputerNameW(computer_name, &size)) {
|
| - std::string result;
|
| - bool conversion_successful = base::WideToUTF8(computer_name, size, &result);
|
| - DCHECK(conversion_successful);
|
| - return result;
|
| - }
|
| - return std::string();
|
| -}
|
| -
|
| -} // namespace internal
|
| -} // namespace syncer
|
|
|