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

Side by Side Diff: chrome/browser/android/new_tab_page_prefs.cc

Issue 1129903008: NTP Zombie Code Slayer Part IV: Most Visited (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: android fix Created 5 years, 7 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
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.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/android/new_tab_page_prefs.h" 5 #include "chrome/browser/android/new_tab_page_prefs.h"
6 6
7 #include <jni.h> 7 #include <jni.h>
8 8
9 #include "base/android/jni_string.h" 9 #include "base/android/jni_string.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
106 } 106 }
107 107
108 // static 108 // static
109 void NewTabPagePrefs::RegisterProfilePrefs( 109 void NewTabPagePrefs::RegisterProfilePrefs(
110 user_prefs::PrefRegistrySyncable* registry) { 110 user_prefs::PrefRegistrySyncable* registry) {
111 registry->RegisterBooleanPref(prefs::kNtpCollapsedCurrentlyOpenTabs, false); 111 registry->RegisterBooleanPref(prefs::kNtpCollapsedCurrentlyOpenTabs, false);
112 registry->RegisterBooleanPref(prefs::kNtpCollapsedSnapshotDocument, false); 112 registry->RegisterBooleanPref(prefs::kNtpCollapsedSnapshotDocument, false);
113 registry->RegisterBooleanPref(prefs::kNtpCollapsedRecentlyClosedTabs, false); 113 registry->RegisterBooleanPref(prefs::kNtpCollapsedRecentlyClosedTabs, false);
114 registry->RegisterBooleanPref(prefs::kNtpCollapsedSyncPromo, false); 114 registry->RegisterBooleanPref(prefs::kNtpCollapsedSyncPromo, false);
115 registry->RegisterDictionaryPref(prefs::kNtpCollapsedForeignSessions); 115 registry->RegisterDictionaryPref(prefs::kNtpCollapsedForeignSessions);
116 registry->RegisterDictionaryPref(prefs::kNtpMostVisitedURLsBlacklist);
117 } 116 }
118 117
119 // static 118 // static
120 bool NewTabPagePrefs::RegisterNewTabPagePrefs(JNIEnv* env) { 119 bool NewTabPagePrefs::RegisterNewTabPagePrefs(JNIEnv* env) {
121 return RegisterNativesImpl(env); 120 return RegisterNativesImpl(env);
122 } 121 }
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698