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

Side by Side Diff: chrome/browser/ui/webui/help/version_updater_chromeos.h

Issue 790183002: Revert of Call to CrosSettings::Set() is replaced by OwnerSettingsService::Set() in VersionUpda... (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 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
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_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 6 #define CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "chrome/browser/ui/webui/help/version_updater.h" 10 #include "chrome/browser/ui/webui/help/version_updater.h"
(...skipping 10 matching lines...) Expand all
21 virtual void GetChannel(bool get_current_channel, 21 virtual void GetChannel(bool get_current_channel,
22 const ChannelCallback& callback) override; 22 const ChannelCallback& callback) override;
23 23
24 // Gets the last update status, without triggering a new check or download. 24 // Gets the last update status, without triggering a new check or download.
25 void GetUpdateStatus(const StatusCallback& callback); 25 void GetUpdateStatus(const StatusCallback& callback);
26 26
27 protected: 27 protected:
28 friend class VersionUpdater; 28 friend class VersionUpdater;
29 29
30 // Clients must use VersionUpdater::Create(). 30 // Clients must use VersionUpdater::Create().
31 explicit VersionUpdaterCros(content::BrowserContext* context); 31 VersionUpdaterCros();
32 virtual ~VersionUpdaterCros(); 32 virtual ~VersionUpdaterCros();
33 33
34 private: 34 private:
35 // UpdateEngineClient::Observer implementation. 35 // UpdateEngineClient::Observer implementation.
36 virtual void UpdateStatusChanged( 36 virtual void UpdateStatusChanged(
37 const chromeos::UpdateEngineClient::Status& status) override; 37 const chromeos::UpdateEngineClient::Status& status) override;
38 38
39 // Callback from UpdateEngineClient::RequestUpdateCheck(). 39 // Callback from UpdateEngineClient::RequestUpdateCheck().
40 void OnUpdateCheck(chromeos::UpdateEngineClient::UpdateCheckResult result); 40 void OnUpdateCheck(chromeos::UpdateEngineClient::UpdateCheckResult result);
41 41
42 // BrowserContext in which the class was instantiated.
43 content::BrowserContext* context_;
44
45 // Callback used to communicate update status to the client. 42 // Callback used to communicate update status to the client.
46 StatusCallback callback_; 43 StatusCallback callback_;
47 44
48 // Last state received via UpdateStatusChanged(). 45 // Last state received via UpdateStatusChanged().
49 chromeos::UpdateEngineClient::UpdateStatusOperation last_operation_; 46 chromeos::UpdateEngineClient::UpdateStatusOperation last_operation_;
50 47
51 // True if an update check should be scheduled when the update engine is idle. 48 // True if an update check should be scheduled when the update engine is idle.
52 bool check_for_update_when_idle_; 49 bool check_for_update_when_idle_;
53 50
54 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_; 51 base::WeakPtrFactory<VersionUpdaterCros> weak_ptr_factory_;
55 52
56 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros); 53 DISALLOW_COPY_AND_ASSIGN(VersionUpdaterCros);
57 }; 54 };
58 55
59 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_ 56 #endif // CHROME_BROWSER_UI_WEBUI_HELP_VERSION_UPDATER_CHROMEOS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/help/version_updater_basic.cc ('k') | chrome/browser/ui/webui/help/version_updater_chromeos.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698