| 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/ui/ash/chrome_launcher_prefs.h" | 5 #include "chrome/browser/ui/ash/chrome_launcher_prefs.h" |
| 6 | 6 |
| 7 #include "base/basictypes.h" | 7 #include "base/basictypes.h" |
| 8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
| 9 #include "base/values.h" | 9 #include "base/values.h" |
| 10 #include "chrome/browser/prefs/pref_service.h" | 10 #include "chrome/browser/prefs/pref_service.h" |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // pushed to local state and we'll need to track profile per item. | 46 // pushed to local state and we'll need to track profile per item. |
| 47 user_prefs->RegisterBooleanPref(prefs::kUseDefaultPinnedApps, | 47 user_prefs->RegisterBooleanPref(prefs::kUseDefaultPinnedApps, |
| 48 true, | 48 true, |
| 49 PrefService::SYNCABLE_PREF); | 49 PrefService::SYNCABLE_PREF); |
| 50 user_prefs->RegisterListPref(prefs::kPinnedLauncherApps, | 50 user_prefs->RegisterListPref(prefs::kPinnedLauncherApps, |
| 51 CreateDefaultPinnedAppsList(), | 51 CreateDefaultPinnedAppsList(), |
| 52 PrefService::SYNCABLE_PREF); | 52 PrefService::SYNCABLE_PREF); |
| 53 user_prefs->RegisterStringPref(prefs::kShelfAutoHideBehavior, | 53 user_prefs->RegisterStringPref(prefs::kShelfAutoHideBehavior, |
| 54 kShelfAutoHideBehaviorNever, | 54 kShelfAutoHideBehaviorNever, |
| 55 PrefService::SYNCABLE_PREF); | 55 PrefService::SYNCABLE_PREF); |
| 56 user_prefs->RegisterStringPref(prefs::kShelfAutoHideBehaviorLocal, |
| 57 std::string(), |
| 58 PrefService::UNSYNCABLE_PREF); |
| 56 user_prefs->RegisterStringPref(prefs::kShelfAlignment, | 59 user_prefs->RegisterStringPref(prefs::kShelfAlignment, |
| 57 kShelfAlignmentBottom, | 60 kShelfAlignmentBottom, |
| 58 PrefService::SYNCABLE_PREF); | 61 PrefService::SYNCABLE_PREF); |
| 62 user_prefs->RegisterStringPref(prefs::kShelfAlignmentLocal, |
| 63 std::string(), |
| 64 PrefService::UNSYNCABLE_PREF); |
| 59 user_prefs->RegisterBooleanPref(prefs::kLauncherShouldRunSyncAnimation, | 65 user_prefs->RegisterBooleanPref(prefs::kLauncherShouldRunSyncAnimation, |
| 60 true, | 66 true, |
| 61 PrefService::UNSYNCABLE_PREF); | 67 PrefService::UNSYNCABLE_PREF); |
| 62 } | 68 } |
| 63 | 69 |
| 64 base::DictionaryValue* CreateAppDict(const std::string& app_id) { | 70 base::DictionaryValue* CreateAppDict(const std::string& app_id) { |
| 65 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue); | 71 scoped_ptr<base::DictionaryValue> app_value(new base::DictionaryValue); |
| 66 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id); | 72 app_value->SetString(kPinnedAppsPrefAppIDPath, app_id); |
| 67 return app_value.release(); | 73 return app_value.release(); |
| 68 } | 74 } |
| 69 | 75 |
| 70 } // namespace ash | 76 } // namespace ash |
| OLD | NEW |