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

Side by Side Diff: chrome/browser/profile.h

Issue 2905003: Implement support for disabling sync through configuration management. (Closed)
Patch Set: Fix PrefsControllerTest on MAC. Created 10 years, 5 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 | « chrome/browser/managed_prefs_banner_base.cc ('k') | chrome/browser/profile.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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 // This class gathers state related to a single user profile. 5 // This class gathers state related to a single user profile.
6 6
7 #ifndef CHROME_BROWSER_PROFILE_H_ 7 #ifndef CHROME_BROWSER_PROFILE_H_
8 #define CHROME_BROWSER_PROFILE_H_ 8 #define CHROME_BROWSER_PROFILE_H_
9 9
10 #include <set> 10 #include <set>
(...skipping 430 matching lines...) Expand 10 before | Expand all | Expand 10 after
441 441
442 void ResumeAccessibilityEvents() { 442 void ResumeAccessibilityEvents() {
443 DCHECK(accessibility_pause_level_ > 0); 443 DCHECK(accessibility_pause_level_ > 0);
444 accessibility_pause_level_--; 444 accessibility_pause_level_--;
445 } 445 }
446 446
447 bool ShouldSendAccessibilityEvents() { 447 bool ShouldSendAccessibilityEvents() {
448 return 0 == accessibility_pause_level_; 448 return 0 == accessibility_pause_level_;
449 } 449 }
450 450
451 // Checks whether sync is configurable by the user. Returns false if sync is
452 // disabled or controlled by configuration management.
453 bool IsSyncAccessible();
454
451 protected: 455 protected:
452 static URLRequestContextGetter* default_request_context_; 456 static URLRequestContextGetter* default_request_context_;
453 457
454 private: 458 private:
455 bool restored_last_session_; 459 bool restored_last_session_;
456 460
457 // Accessibility events will only be propagated when the pause 461 // Accessibility events will only be propagated when the pause
458 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents 462 // level is zero. PauseAccessibilityEvents and ResumeAccessibilityEvents
459 // increment and decrement the level, respectively, rather than set it to 463 // increment and decrement the level, respectively, rather than set it to
460 // true or false, so that calls can be nested. 464 // true or false, so that calls can be nested.
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after
663 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails. 667 scoped_refptr<history::TopSites> top_sites_; // For history and thumbnails.
664 668
665 #if defined(OS_CHROMEOS) 669 #if defined(OS_CHROMEOS)
666 chromeos::Preferences chromeos_preferences_; 670 chromeos::Preferences chromeos_preferences_;
667 #endif 671 #endif
668 672
669 DISALLOW_COPY_AND_ASSIGN(ProfileImpl); 673 DISALLOW_COPY_AND_ASSIGN(ProfileImpl);
670 }; 674 };
671 675
672 #endif // CHROME_BROWSER_PROFILE_H_ 676 #endif // CHROME_BROWSER_PROFILE_H_
OLDNEW
« no previous file with comments | « chrome/browser/managed_prefs_banner_base.cc ('k') | chrome/browser/profile.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698