| Index: chrome/browser/first_run/upgrade_gtk.cc
|
| diff --git a/chrome/browser/first_run/upgrade_gtk.cc b/chrome/browser/first_run/upgrade_gtk.cc
|
| deleted file mode 100644
|
| index 419e58f0bd045f14a4dbeb1d1a7ecf6e3cbe52f3..0000000000000000000000000000000000000000
|
| --- a/chrome/browser/first_run/upgrade_gtk.cc
|
| +++ /dev/null
|
| @@ -1,55 +0,0 @@
|
| -// Copyright (c) 2011 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 "chrome/browser/first_run/upgrade.h"
|
| -
|
| -#include "base/base_paths.h"
|
| -#include "base/command_line.h"
|
| -#include "base/file_path.h"
|
| -#include "base/file_util.h"
|
| -#include "base/logging.h"
|
| -#include "base/path_service.h"
|
| -#include "base/platform_file.h"
|
| -#include "base/process_util.h"
|
| -
|
| -#if defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
| -// static
|
| -CommandLine* Upgrade::new_command_line_ = NULL;
|
| -
|
| -// static
|
| -double Upgrade::saved_last_modified_time_of_exe_ = 0;
|
| -
|
| -// static
|
| -bool Upgrade::RelaunchChromeBrowser(const CommandLine& command_line) {
|
| - return base::LaunchApp(command_line, false, false, NULL);
|
| -}
|
| -
|
| -// static
|
| -void Upgrade::SaveLastModifiedTimeOfExe() {
|
| - saved_last_modified_time_of_exe_ = Upgrade::GetLastModifiedTimeOfExe();
|
| -}
|
| -
|
| -// static
|
| -bool Upgrade::IsUpdatePendingRestart() {
|
| - return saved_last_modified_time_of_exe_ !=
|
| - Upgrade::GetLastModifiedTimeOfExe();
|
| -}
|
| -
|
| -// static
|
| -double Upgrade::GetLastModifiedTimeOfExe() {
|
| - FilePath exe_file_path;
|
| - if (!PathService::Get(base::FILE_EXE, &exe_file_path)) {
|
| - LOG(WARNING) << "Failed to get FilePath object for FILE_EXE.";
|
| - return saved_last_modified_time_of_exe_;
|
| - }
|
| - base::PlatformFileInfo exe_file_info;
|
| - if (!file_util::GetFileInfo(exe_file_path, &exe_file_info)) {
|
| - LOG(WARNING) << "Failed to get FileInfo object for FILE_EXE - "
|
| - << exe_file_path.value();
|
| - return saved_last_modified_time_of_exe_;
|
| - }
|
| - return exe_file_info.last_modified.ToDoubleT();
|
| -}
|
| -
|
| -#endif // defined(OS_LINUX) && !defined(OS_CHROMEOS)
|
|
|