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

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

Issue 8827013: Move/replace/rename URL-based extension getters from ExtensionService to/in ExtensionSet. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: origins Created 9 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 | 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 <string> 7 #include <string>
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "base/bind.h" 10 #include "base/bind.h"
(...skipping 311 matching lines...) Expand 10 before | Expand all | Expand 10 after
322 } 322 }
323 323
324 TabContentsWrapper* TaskManagerTabContentsResource::GetTabContents() const { 324 TabContentsWrapper* TaskManagerTabContentsResource::GetTabContents() const {
325 return tab_contents_; 325 return tab_contents_;
326 } 326 }
327 327
328 const Extension* TaskManagerTabContentsResource::GetExtension() const { 328 const Extension* TaskManagerTabContentsResource::GetExtension() const {
329 if (HostsExtension()) { 329 if (HostsExtension()) {
330 ExtensionService* extension_service = 330 ExtensionService* extension_service =
331 tab_contents_->profile()->GetExtensionService(); 331 tab_contents_->profile()->GetExtensionService();
332 return extension_service->GetExtensionByURL( 332 return extension_service->extensions()->GetByURL(
333 tab_contents_->tab_contents()->GetURL()); 333 ExtensionURLInfo(tab_contents_->tab_contents()->GetURL()));
334 } 334 }
335 335
336 return NULL; 336 return NULL;
337 } 337 }
338 338
339 //////////////////////////////////////////////////////////////////////////////// 339 ////////////////////////////////////////////////////////////////////////////////
340 // TaskManagerTabContentsResourceProvider class 340 // TaskManagerTabContentsResourceProvider class
341 //////////////////////////////////////////////////////////////////////////////// 341 ////////////////////////////////////////////////////////////////////////////////
342 342
343 TaskManagerTabContentsResourceProvider:: 343 TaskManagerTabContentsResourceProvider::
(...skipping 1097 matching lines...) Expand 10 before | Expand all | Expand 10 after
1441 1441
1442 return &resource_; 1442 return &resource_;
1443 } 1443 }
1444 1444
1445 void TaskManagerBrowserProcessResourceProvider::StartUpdating() { 1445 void TaskManagerBrowserProcessResourceProvider::StartUpdating() {
1446 task_manager_->AddResource(&resource_); 1446 task_manager_->AddResource(&resource_);
1447 } 1447 }
1448 1448
1449 void TaskManagerBrowserProcessResourceProvider::StopUpdating() { 1449 void TaskManagerBrowserProcessResourceProvider::StopUpdating() {
1450 } 1450 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698