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

Side by Side Diff: apps/prefs.cc

Issue 25034003: Moved apps metro code from apps to chrome/browser/apps. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase and fix unit test Created 7 years, 2 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.h ('k') | chrome/browser/apps/app_launch_for_metro_restart_win.h » ('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 "apps/prefs.h" 5 #include "apps/prefs.h"
6 6
7 #include "apps/pref_names.h" 7 #include "apps/pref_names.h"
8 #include "base/prefs/pref_registry_simple.h" 8 #include "base/prefs/pref_registry_simple.h"
9 #include "components/user_prefs/pref_registry_syncable.h" 9 #include "components/user_prefs/pref_registry_syncable.h"
10 10
11 namespace apps { 11 namespace apps {
12 12
13 void RegisterPrefs(PrefRegistrySimple* registry) {
14 #if defined(OS_WIN)
15 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestart, "");
16 registry->RegisterStringPref(prefs::kAppLaunchForMetroRestartProfile, "");
17 #endif
18 }
19
20 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) { 13 void RegisterProfilePrefs(user_prefs::PrefRegistrySyncable* registry) {
21 #if !defined(OS_MACOSX) 14 #if !defined(OS_MACOSX)
22 registry->RegisterBooleanPref( 15 registry->RegisterBooleanPref(
23 prefs::kAppFullscreenAllowed, true, 16 prefs::kAppFullscreenAllowed, true,
24 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF); 17 user_prefs::PrefRegistrySyncable::UNSYNCABLE_PREF);
25 #endif 18 #endif
26 } 19 }
27 20
28 } // namespace apps 21 } // namespace apps
OLDNEW
« no previous file with comments | « apps/prefs.h ('k') | chrome/browser/apps/app_launch_for_metro_restart_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698