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

Unified Diff: chrome/browser/chromeos/status/memory_menu_button.cc

Issue 8438064: Separate StatusAreaView from StatusAreaViewChromeos (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/status/memory_menu_button.cc
diff --git a/chrome/browser/chromeos/status/memory_menu_button.cc b/chrome/browser/chromeos/status/memory_menu_button.cc
index edf7b3ee29e70ec87a9a6bfe5db416b9d289f6bd..ae38c3ccf4d4ff02c429c783aa521c4e7403fcff 100644
--- a/chrome/browser/chromeos/status/memory_menu_button.cc
+++ b/chrome/browser/chromeos/status/memory_menu_button.cc
@@ -9,7 +9,7 @@
#include "base/process_util.h" // GetSystemMemoryInfo
#include "base/stringprintf.h"
#include "base/threading/thread_restrictions.h"
-#include "chrome/browser/chromeos/status/status_area_host.h"
+#include "chrome/browser/chromeos/view_ids.h"
#include "chrome/browser/memory_purger.h"
#include "chrome/common/render_messages.h"
#include "content/browser/renderer_host/render_process_host.h"
@@ -51,10 +51,11 @@ namespace chromeos {
// Delay between updates, in seconds.
const int kUpdateIntervalSeconds = 5;
-MemoryMenuButton::MemoryMenuButton(StatusAreaHost* host)
- : StatusAreaButton(host, this),
+MemoryMenuButton::MemoryMenuButton(StatusAreaButton::Delegate* delegate)
+ : StatusAreaButton(delegate, this),
meminfo_(new base::SystemMemoryInfoKB()),
renderer_kills_(0) {
+ set_id(VIEW_ID_STATUS_BUTTON_MEMORY);
// Track renderer kills, as the kernel OOM killer will start to kill our
// renderers as we run out of memory.
registrar_.Add(this, content::NOTIFICATION_RENDERER_PROCESS_CLOSED,
« no previous file with comments | « chrome/browser/chromeos/status/memory_menu_button.h ('k') | chrome/browser/chromeos/status/network_dropdown_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698