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

Side by Side Diff: chrome/browser/bookmarks/bookmark_utils.cc

Issue 118150: Linux bookmark manager first cut. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: 1 more file Created 11 years, 6 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 | « chrome/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/browser_prefs.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 (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
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
OLDNEW
« no previous file with comments | « chrome/browser/bookmarks/bookmark_utils.h ('k') | chrome/browser/browser_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698