| OLD | NEW |
| 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 "chrome/browser/lifetime/application_lifetime.h" | 5 #include "chrome/browser/lifetime/application_lifetime.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
| 9 #include "base/win/metro.h" | 9 #include "base/win/metro.h" |
| 10 #include "base/win/windows_version.h" | 10 #include "base/win/windows_version.h" |
| 11 #include "chrome/browser/browser_process.h" | 11 #include "chrome/browser/browser_process.h" |
| 12 #include "chrome/browser/first_run/upgrade_util.h" | 12 #include "chrome/browser/first_run/upgrade_util.h" |
| 13 #include "chrome/browser/ui/browser_finder.h" | 13 #include "chrome/browser/ui/browser_finder.h" |
| 14 #include "chrome/common/pref_names.h" | 14 #include "chrome/common/pref_names.h" |
| 15 #include "content/public/browser/browser_thread.h" | |
| 16 #include "ui/views/widget/widget.h" | 15 #include "ui/views/widget/widget.h" |
| 17 | 16 |
| 18 #if defined(USE_AURA) | 17 #if defined(USE_AURA) |
| 19 #include "base/environment.h" | 18 #include "base/environment.h" |
| 20 #include "base/files/file_path.h" | 19 #include "base/files/file_path.h" |
| 21 #include "base/path_service.h" | 20 #include "base/path_service.h" |
| 22 #include "chrome/browser/metro_utils/metro_chrome_win.h" | 21 #include "chrome/browser/metro_utils/metro_chrome_win.h" |
| 23 #include "chrome/browser/shell_integration.h" | 22 #include "chrome/browser/shell_integration.h" |
| 24 #include "chrome/common/chrome_constants.h" | 23 #include "chrome/common/chrome_constants.h" |
| 25 #include "chrome/installer/util/util_constants.h" | 24 #include "chrome/installer/util/util_constants.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 102 } | 101 } |
| 103 | 102 |
| 104 void AttemptRestartToMetroMode() { | 103 void AttemptRestartToMetroMode() { |
| 105 PrefService* prefs = g_browser_process->local_state(); | 104 PrefService* prefs = g_browser_process->local_state(); |
| 106 prefs->SetString(prefs::kRelaunchMode, | 105 prefs->SetString(prefs::kRelaunchMode, |
| 107 upgrade_util::kRelaunchModeMetro); | 106 upgrade_util::kRelaunchModeMetro); |
| 108 AttemptRestart(); | 107 AttemptRestart(); |
| 109 } | 108 } |
| 110 | 109 |
| 111 } // namespace chrome | 110 } // namespace chrome |
| OLD | NEW |