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

Side by Side Diff: chrome/browser/task_manager/task_manager_notification_resource_provider.cc

Issue 7831003: Add Profile data to the Task Manager on OS Mac. Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/task_manager/task_manager_resource_providers.h" 5 #include "chrome/browser/task_manager/task_manager_resource_providers.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "chrome/browser/browser_process.h" 9 #include "chrome/browser/browser_process.h"
10 #include "chrome/browser/notifications/balloon_collection.h" 10 #include "chrome/browser/notifications/balloon_collection.h"
(...skipping 29 matching lines...) Expand all
40 balloon_host_->GetSource()); 40 balloon_host_->GetSource());
41 } 41 }
42 42
43 TaskManagerNotificationResource::~TaskManagerNotificationResource() { 43 TaskManagerNotificationResource::~TaskManagerNotificationResource() {
44 } 44 }
45 45
46 string16 TaskManagerNotificationResource::GetTitle() const { 46 string16 TaskManagerNotificationResource::GetTitle() const {
47 return title_; 47 return title_;
48 } 48 }
49 49
50 string16 TaskManagerNotificationResource::GetProfileName() const {
51 return string16();
52 }
53
50 SkBitmap TaskManagerNotificationResource::GetIcon() const { 54 SkBitmap TaskManagerNotificationResource::GetIcon() const {
51 return *default_icon_; 55 return *default_icon_;
52 } 56 }
53 57
54 base::ProcessHandle TaskManagerNotificationResource::GetProcess() const { 58 base::ProcessHandle TaskManagerNotificationResource::GetProcess() const {
55 return process_handle_; 59 return process_handle_;
56 } 60 }
57 61
58 TaskManager::Resource::Type TaskManagerNotificationResource::GetType() const { 62 TaskManager::Resource::Type TaskManagerNotificationResource::GetType() const {
59 return NOTIFICATION; 63 return NOTIFICATION;
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 // Remove the resource from the Task Manager. 168 // Remove the resource from the Task Manager.
165 TaskManagerNotificationResource* resource = iter->second; 169 TaskManagerNotificationResource* resource = iter->second;
166 task_manager_->RemoveResource(resource); 170 task_manager_->RemoveResource(resource);
167 171
168 // Remove it from the map. 172 // Remove it from the map.
169 resources_.erase(iter); 173 resources_.erase(iter);
170 174
171 // Finally, delete the resource. 175 // Finally, delete the resource.
172 delete resource; 176 delete resource;
173 } 177 }
OLDNEW
« no previous file with comments | « chrome/browser/task_manager/task_manager.cc ('k') | chrome/browser/task_manager/task_manager_resource_providers.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698