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

Side by Side Diff: chrome/browser/profiles/profile_io_data.h

Issue 336213005: Disable incognito link if parental control is on (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comments addressed Created 6 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
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 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 5 #ifndef CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 6 #define CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
203 return username_hash_; 203 return username_hash_;
204 } 204 }
205 #endif 205 #endif
206 206
207 Profile::ProfileType profile_type() const { 207 Profile::ProfileType profile_type() const {
208 return profile_type_; 208 return profile_type_;
209 } 209 }
210 210
211 bool IsOffTheRecord() const; 211 bool IsOffTheRecord() const;
212 212
213 // Returns whether parental controls have been enabled on the platform. This
214 // function simply returns a cached value and thus the result may be stale.
215 bool ArePlatformParentalControlsEnabledCached() const;
216
213 IntegerPrefMember* incognito_availibility() const { 217 IntegerPrefMember* incognito_availibility() const {
214 return &incognito_availibility_pref_; 218 return &incognito_availibility_pref_;
215 } 219 }
216 220
217 #if defined(ENABLE_CONFIGURATION_POLICY) 221 #if defined(ENABLE_CONFIGURATION_POLICY)
218 policy::PolicyHeaderIOHelper* policy_header_helper() const { 222 policy::PolicyHeaderIOHelper* policy_header_helper() const {
219 return policy_header_helper_.get(); 223 return policy_header_helper_.get();
220 } 224 }
221 #endif 225 #endif
222 226
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
586 590
587 // TODO(jhawkins): Remove once crbug.com/102004 is fixed. 591 // TODO(jhawkins): Remove once crbug.com/102004 is fixed.
588 bool initialized_on_UI_thread_; 592 bool initialized_on_UI_thread_;
589 593
590 const Profile::ProfileType profile_type_; 594 const Profile::ProfileType profile_type_;
591 595
592 DISALLOW_COPY_AND_ASSIGN(ProfileIOData); 596 DISALLOW_COPY_AND_ASSIGN(ProfileIOData);
593 }; 597 };
594 598
595 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_ 599 #endif // CHROME_BROWSER_PROFILES_PROFILE_IO_DATA_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/profiles/profile_io_data.cc » ('j') | chrome/browser/profiles/profile_io_data.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698