| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/apps/app_launch_for_metro_restart_win.h" | 5 #include "chrome/browser/apps/app_launch_for_metro_restart_win.h" |
| 6 | 6 |
| 7 #include "apps/launcher.h" | 7 #include "apps/launcher.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/files/file_path.h" | 9 #include "base/files/file_path.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/prefs/pref_registry_simple.h" | |
| 12 #include "base/prefs/pref_service.h" | |
| 13 #include "base/time/time.h" | 11 #include "base/time/time.h" |
| 14 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 15 #include "chrome/browser/extensions/extension_service.h" | 13 #include "chrome/browser/extensions/extension_service.h" |
| 16 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 17 #include "chrome/browser/profiles/profile_manager.h" | 15 #include "chrome/browser/profiles/profile_manager.h" |
| 18 #include "chrome/common/pref_names.h" | 16 #include "chrome/common/pref_names.h" |
| 17 #include "components/prefs/pref_registry_simple.h" |
| 18 #include "components/prefs/pref_service.h" |
| 19 #include "extensions/browser/api/app_runtime/app_runtime_api.h" | 19 #include "extensions/browser/api/app_runtime/app_runtime_api.h" |
| 20 #include "extensions/browser/extension_system.h" | 20 #include "extensions/browser/extension_system.h" |
| 21 #include "extensions/common/constants.h" | 21 #include "extensions/common/constants.h" |
| 22 | 22 |
| 23 using extensions::AppRuntimeEventRouter; | 23 using extensions::AppRuntimeEventRouter; |
| 24 using extensions::Extension; | 24 using extensions::Extension; |
| 25 using extensions::ExtensionSystem; | 25 using extensions::ExtensionSystem; |
| 26 | 26 |
| 27 namespace app_metro_launch { | 27 namespace app_metro_launch { |
| 28 | 28 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 85 profile->GetPath().BaseName().MaybeAsASCII()); | 85 profile->GetPath().BaseName().MaybeAsASCII()); |
| 86 prefs->SetString(prefs::kAppLaunchForMetroRestart, extension_id); | 86 prefs->SetString(prefs::kAppLaunchForMetroRestart, extension_id); |
| 87 } | 87 } |
| 88 | 88 |
| 89 void RegisterPrefs(PrefRegistrySimple* registry) { | 89 void RegisterPrefs(PrefRegistrySimple* registry) { |
| 90 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, ""); | 90 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, ""); |
| 91 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, ""); | 91 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, ""); |
| 92 } | 92 } |
| 93 | 93 |
| 94 } // namespace app_metro_launch | 94 } // namespace app_metro_launch |
| OLD | NEW |