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

Side by Side Diff: chrome/browser/chromeos/update_observer.h

Issue 3157018: Only showing notification when a restart is needed. Partial fix to 5168. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: . Created 10 years, 4 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 | « no previous file | chrome/browser/chromeos/update_observer.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 #ifndef CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_
6 #define CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_ 6 #define CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "chrome/browser/chromeos/cros/update_library.h" 11 #include "chrome/browser/chromeos/cros/update_library.h"
12 #include "chrome/browser/chromeos/notifications/system_notification.h" 12 #include "chrome/browser/chromeos/notifications/system_notification.h"
13 13
14 class Profile; 14 class Profile;
15 15
16 namespace chromeos { 16 namespace chromeos {
17 17
18 // The update observer displays a system notification when the an update is 18 // The update observer displays a system notification when the an update is
19 // available. 19 // available.
20 20
21 class UpdateObserver : public UpdateLibrary::Observer { 21 class UpdateObserver : public UpdateLibrary::Observer {
22 public: 22 public:
23 explicit UpdateObserver(Profile* profile); 23 explicit UpdateObserver(Profile* profile);
24 virtual ~UpdateObserver(); 24 virtual ~UpdateObserver();
25 25
26 private: 26 private:
27 virtual void UpdateStatusChanged(UpdateLibrary* library); 27 virtual void UpdateStatusChanged(UpdateLibrary* library);
28 28
29 SystemNotification notification_; 29 SystemNotification notification_;
30 int progress_; // Last displayed remaining time in minutes
31 30
32 DISALLOW_COPY_AND_ASSIGN(UpdateObserver); 31 DISALLOW_COPY_AND_ASSIGN(UpdateObserver);
33 }; 32 };
34 33
35 } // namespace chromeos 34 } // namespace chromeos
36 35
37 #endif // CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_ 36 #endif // CHROME_BROWSER_CHROMEOS_UPDATE_OBSERVER_H_
38 37
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/update_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698