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

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

Issue 1811333003: Move the remaining NTP realted files to c/b/android/ntp subdir. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Sync again Created 4 years, 9 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
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/ntp/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 "chrome/browser/profiles/profile_android.h" 10 #include "chrome/browser/profiles/profile_android.h"
11 #include "chrome/common/pref_names.h" 11 #include "chrome/common/pref_names.h"
12 #include "components/pref_registry/pref_registry_syncable.h" 12 #include "components/pref_registry/pref_registry_syncable.h"
13 #include "components/prefs/pref_service.h" 13 #include "components/prefs/pref_service.h"
14 #include "components/prefs/scoped_user_pref_update.h" 14 #include "components/prefs/scoped_user_pref_update.h"
15 #include "jni/NewTabPagePrefs_jni.h" 15 #include "jni/NewTabPagePrefs_jni.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 registry->RegisterBooleanPref(prefs::kNtpCollapsedSnapshotDocument, false); 123 registry->RegisterBooleanPref(prefs::kNtpCollapsedSnapshotDocument, false);
124 registry->RegisterBooleanPref(prefs::kNtpCollapsedRecentlyClosedTabs, false); 124 registry->RegisterBooleanPref(prefs::kNtpCollapsedRecentlyClosedTabs, false);
125 registry->RegisterBooleanPref(prefs::kNtpCollapsedSyncPromo, false); 125 registry->RegisterBooleanPref(prefs::kNtpCollapsedSyncPromo, false);
126 registry->RegisterDictionaryPref(prefs::kNtpCollapsedForeignSessions); 126 registry->RegisterDictionaryPref(prefs::kNtpCollapsedForeignSessions);
127 } 127 }
128 128
129 // static 129 // static
130 bool NewTabPagePrefs::RegisterNewTabPagePrefs(JNIEnv* env) { 130 bool NewTabPagePrefs::RegisterNewTabPagePrefs(JNIEnv* env) {
131 return RegisterNativesImpl(env); 131 return RegisterNativesImpl(env);
132 } 132 }
OLDNEW
« no previous file with comments | « chrome/browser/android/ntp/new_tab_page_prefs.h ('k') | chrome/browser/android/ntp/new_tab_page_url_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698