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

Side by Side Diff: chrome/browser/ui/webui/help/version_updater_mac.mm

Issue 738843002: Call to CrosSettings::Set() is replaced by OwnerSettingsService::Set() in VersionUpdaterCros. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixes. Created 6 years, 1 month 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 #include "chrome/browser/ui/webui/help/version_updater_mac.h" 5 #include "chrome/browser/ui/webui/help/version_updater_mac.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "chrome/browser/lifetime/application_lifetime.h" 9 #include "chrome/browser/lifetime/application_lifetime.h"
10 #import "chrome/browser/mac/keystone_glue.h" 10 #import "chrome/browser/mac/keystone_glue.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 [[NSNotificationCenter defaultCenter] removeObserver:self]; 46 [[NSNotificationCenter defaultCenter] removeObserver:self];
47 [super dealloc]; 47 [super dealloc];
48 } 48 }
49 49
50 - (void)handleStatusNotification:(NSNotification*)notification { 50 - (void)handleStatusNotification:(NSNotification*)notification {
51 versionUpdater_->UpdateStatus([notification userInfo]); 51 versionUpdater_->UpdateStatus([notification userInfo]);
52 } 52 }
53 53
54 @end // @implementation KeystoneObserver 54 @end // @implementation KeystoneObserver
55 55
56 56 VersionUpdater* VersionUpdater::Create(content::BrowserContext* /* context */) {
57 VersionUpdater* VersionUpdater::Create() {
58 return new VersionUpdaterMac; 57 return new VersionUpdaterMac;
59 } 58 }
60 59
61 VersionUpdaterMac::VersionUpdaterMac() 60 VersionUpdaterMac::VersionUpdaterMac()
62 : show_promote_button_(false), 61 : show_promote_button_(false),
63 keystone_observer_([[KeystoneObserver alloc] initWithUpdater:this]) { 62 keystone_observer_([[KeystoneObserver alloc] initWithUpdater:this]) {
64 } 63 }
65 64
66 VersionUpdaterMac::~VersionUpdaterMac() { 65 VersionUpdaterMac::~VersionUpdaterMac() {
67 } 66 }
(...skipping 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 } else if (recent_status == kAutoupdatePromoting || 240 } else if (recent_status == kAutoupdatePromoting ||
242 recent_status == kAutoupdatePromoteFailed) { 241 recent_status == kAutoupdatePromoteFailed) {
243 // Show promotion UI because the user either just clicked that button or 242 // Show promotion UI because the user either just clicked that button or
244 // because the user should be able to click it again. 243 // because the user should be able to click it again.
245 show_promote_button_ = true; 244 show_promote_button_ = true;
246 } else { 245 } else {
247 // Show the promote button if promotion is a possibility. 246 // Show the promote button if promotion is a possibility.
248 show_promote_button_ = [keystone_glue wantsPromotion]; 247 show_promote_button_ = [keystone_glue wantsPromotion];
249 } 248 }
250 } 249 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_chromeos_unittest.cc ('k') | chrome/browser/ui/webui/help/version_updater_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698