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

Unified Diff: chrome/browser/chromeos/update_observer.cc

Issue 8369009: chromeos: Remove UpdateObserver, which has been unused for long. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/chromeos/update_observer.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/update_observer.cc
diff --git a/chrome/browser/chromeos/update_observer.cc b/chrome/browser/chromeos/update_observer.cc
deleted file mode 100644
index 33b13a11465176206dba514706d4b991787d0b81..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/update_observer.cc
+++ /dev/null
@@ -1,36 +0,0 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#include "chrome/browser/chromeos/update_observer.h"
-
-#include "base/string_number_conversions.h"
-#include "base/utf_string_conversions.h"
-#include "chrome/common/time_format.h"
-#include "grit/generated_resources.h"
-#include "grit/theme_resources.h"
-#include "ui/base/l10n/l10n_util.h"
-
-namespace chromeos {
-
-UpdateObserver::UpdateObserver(Profile* profile)
- : notification_(profile, "update.chromeos", IDR_NOTIFICATION_UPDATE,
- l10n_util::GetStringUTF16(IDS_UPDATE_TITLE)) {}
-
-UpdateObserver::~UpdateObserver() {
- notification_.Hide();
-}
-
-void UpdateObserver::UpdateStatusChanged(UpdateLibrary* library) {
-#if 0
- // TODO seanparent@chromium.org : This update should only be shown when an
- // update is critical and should include a restart button using the
- // update_engine restart API. Currently removed entirely per Kan's request.
-
- if (library->status().status == UPDATE_STATUS_UPDATED_NEED_REBOOT) {
- notification_.Show(l10n_util::GetStringUTF16(IDS_UPDATE_COMPLETED), true);
- }
-#endif
-}
-
-} // namespace chromeos
« no previous file with comments | « chrome/browser/chromeos/update_observer.h ('k') | chrome/browser/ui/browser_init.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698