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

Side by Side Diff: chrome/browser/apps/app_launch_for_metro_restart_win.cc

Issue 499253002: Revert of Merge apps/pref* to extensions/browser/pref* (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « apps/prefs.cc ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "apps/pref_names.h"
8 #include "base/bind.h" 9 #include "base/bind.h"
9 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
10 #include "base/message_loop/message_loop.h" 11 #include "base/message_loop/message_loop.h"
11 #include "base/prefs/pref_registry_simple.h" 12 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
13 #include "base/time/time.h" 14 #include "base/time/time.h"
14 #include "chrome/browser/browser_process.h" 15 #include "chrome/browser/browser_process.h"
15 #include "chrome/browser/extensions/extension_service.h" 16 #include "chrome/browser/extensions/extension_service.h"
16 #include "chrome/browser/profiles/profile.h" 17 #include "chrome/browser/profiles/profile.h"
17 #include "chrome/browser/profiles/profile_manager.h" 18 #include "chrome/browser/profiles/profile_manager.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 profile->GetPath().BaseName().MaybeAsASCII()); 84 profile->GetPath().BaseName().MaybeAsASCII());
84 prefs->SetString(prefs::kAppLaunchForMetroRestart, extension_id); 85 prefs->SetString(prefs::kAppLaunchForMetroRestart, extension_id);
85 } 86 }
86 87
87 void RegisterPrefs(PrefRegistrySimple* registry) { 88 void RegisterPrefs(PrefRegistrySimple* registry) {
88 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, ""); 89 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, "");
89 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, ""); 90 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, "");
90 } 91 }
91 92
92 } // namespace app_metro_launch 93 } // namespace app_metro_launch
OLDNEW
« no previous file with comments | « apps/prefs.cc ('k') | chrome/browser/policy/configuration_policy_handler_list_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698