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

Unified Diff: chrome/browser/mac/keystone_glue.mm

Issue 2583743002: Add mac-only "Set Up Automatic Updates..." button to the new about page. (Closed)
Patch Set: add back nullptr check Created 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/mac/keystone_glue.h ('k') | chrome/browser/resources/settings/about_page/about_page.html » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/mac/keystone_glue.mm
diff --git a/chrome/browser/mac/keystone_glue.mm b/chrome/browser/mac/keystone_glue.mm
index 0b1f65659adbba62ea794b3cb7672a2d424e879d..75714602204ae7ce6dc325e758540c7a7e4de0a9 100644
--- a/chrome/browser/mac/keystone_glue.mm
+++ b/chrome/browser/mac/keystone_glue.mm
@@ -837,6 +837,10 @@ NSString* const kVersionKey = @"KSVersion";
return (statfsBuf.f_flags & MNT_RDONLY) != 0;
}
+- (BOOL)isAutoupdateEnabledForAllUsers {
+ return [self isSystemKeystone] && ![self isUserTicket];
+}
+
- (BOOL)needsPromotion {
// Don't promote when on a read-only filesystem.
if ([self isOnReadOnlyFilesystem]) {
« no previous file with comments | « chrome/browser/mac/keystone_glue.h ('k') | chrome/browser/resources/settings/about_page/about_page.html » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698