OLD | NEW |
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2006-2008 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/bookmarks/bookmark_utils.h" | 5 #include "chrome/browser/bookmarks/bookmark_utils.h" |
6 | 6 |
7 #include "app/drag_drop_types.h" | 7 #include "app/drag_drop_types.h" |
8 #include "app/l10n_util.h" | 8 #include "app/l10n_util.h" |
9 // TODO(port): Port these files. | 9 // TODO(port): Port these files. |
10 #if defined(OS_WIN) | 10 #if defined(OS_WIN) |
(...skipping 589 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
600 prefs->ScheduleSavePersistentPrefs(); | 600 prefs->ScheduleSavePersistentPrefs(); |
601 | 601 |
602 // And notify the notification service. | 602 // And notify the notification service. |
603 Source<Profile> source(profile); | 603 Source<Profile> source(profile); |
604 NotificationService::current()->Notify( | 604 NotificationService::current()->Notify( |
605 NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, | 605 NotificationType::BOOKMARK_BAR_VISIBILITY_PREF_CHANGED, |
606 source, | 606 source, |
607 NotificationService::NoDetails()); | 607 NotificationService::NoDetails()); |
608 } | 608 } |
609 | 609 |
| 610 // static |
| 611 void RegisterPrefs(PrefService* prefs) { |
| 612 prefs->RegisterDictionaryPref(prefs::kBookmarkManagerPlacement); |
| 613 prefs->RegisterIntegerPref(prefs::kBookmarkManagerSplitLocation, -1); |
| 614 } |
| 615 |
| 616 // static |
610 void RegisterUserPrefs(PrefService* prefs) { | 617 void RegisterUserPrefs(PrefService* prefs) { |
611 // Formerly in BookmarkBarView | 618 // Formerly in BookmarkBarView |
612 prefs->RegisterBooleanPref(prefs::kShowBookmarkBar, false); | 619 prefs->RegisterBooleanPref(prefs::kShowBookmarkBar, false); |
613 | 620 |
614 // Formerly in BookmarkTableView | 621 // Formerly in BookmarkTableView |
615 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth1, -1); | 622 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth1, -1); |
616 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth1, -1); | 623 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth1, -1); |
617 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth2, -1); | 624 prefs->RegisterIntegerPref(prefs::kBookmarkTableNameWidth2, -1); |
618 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth2, -1); | 625 prefs->RegisterIntegerPref(prefs::kBookmarkTableURLWidth2, -1); |
619 prefs->RegisterIntegerPref(prefs::kBookmarkTablePathWidth, -1); | 626 prefs->RegisterIntegerPref(prefs::kBookmarkTablePathWidth, -1); |
620 } | 627 } |
621 | 628 |
622 } // namespace bookmark_utils | 629 } // namespace bookmark_utils |
OLD | NEW |