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

Side by Side Diff: chrome/browser/prefs/incognito_mode_prefs.cc

Issue 1487693002: Upstrem prefs changes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « chrome/browser/prefs/browser_prefs.cc ('k') | no next file » | 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) 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/prefs/incognito_mode_prefs.h" 5 #include "chrome/browser/prefs/incognito_mode_prefs.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/metrics/histogram_macros.h" 9 #include "base/metrics/histogram_macros.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 base::Bind( 202 base::Bind(
203 base::IgnoreResult(&PlatformParentalControlsValue::GetInstance))); 203 base::IgnoreResult(&PlatformParentalControlsValue::GetInstance)));
204 } 204 }
205 #endif 205 #endif
206 206
207 // static 207 // static
208 bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() { 208 bool IncognitoModePrefs::ArePlatformParentalControlsEnabled() {
209 #if defined(OS_WIN) 209 #if defined(OS_WIN)
210 return PlatformParentalControlsValue::GetInstance()->is_enabled(); 210 return PlatformParentalControlsValue::GetInstance()->is_enabled();
211 #elif defined(OS_ANDROID) 211 #elif defined(OS_ANDROID)
212 #if defined(USE_AURA)
213 // TODO(bshe): Support parental controls for Aura Android. See
214 // crbug.com/564742
215 NOTIMPLEMENTED();
216 return false;
217 #else
212 return chrome::android::ChromeApplication::AreParentalControlsEnabled(); 218 return chrome::android::ChromeApplication::AreParentalControlsEnabled();
219 #endif
220 #elif defined(OS_ANDROID) && defined(USE_AURA)
221
battre 2015/12/04 10:55:34 the previous branch is less specific (USE_AURA) th
bshe 2015/12/04 14:56:55 deleted. I was using elif instead of nested ifdef
213 #else 222 #else
214 return false; 223 return false;
215 #endif 224 #endif
216 } 225 }
217 226
OLDNEW
« no previous file with comments | « chrome/browser/prefs/browser_prefs.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698