diff options
author | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 18:47:14 +0000 |
---|---|---|
committer | pkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-05-21 18:47:14 +0000 |
commit | 1c58a5c5098144cb4d281301aa79408d21998239 (patch) | |
tree | 2608f092014f1564f055a8459e1f75a267b20d0d /chrome/browser/automation/automation_resource_tracker.cc | |
parent | b31cb10adc5b1150ad6725b2f0b503c4e1593b33 (diff) | |
download | chromium_src-1c58a5c5098144cb4d281301aa79408d21998239.zip chromium_src-1c58a5c5098144cb4d281301aa79408d21998239.tar.gz chromium_src-1c58a5c5098144cb4d281301aa79408d21998239.tar.bz2 |
Use NotificationRegistrar to handle notification observing.Also cleans up some other stuff: use {} on multi-line conditional bodies, remove a bunch of unused routing_id members, don't wrap lines that don't need to, etc.BUG=2381
Review URL: http://codereview.chromium.org/115602
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@16634 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_resource_tracker.cc')
-rw-r--r-- | chrome/browser/automation/automation_resource_tracker.cc | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/chrome/browser/automation/automation_resource_tracker.cc b/chrome/browser/automation/automation_resource_tracker.cc index be3d6fa..de20ba1 100644 --- a/chrome/browser/automation/automation_resource_tracker.cc +++ b/chrome/browser/automation/automation_resource_tracker.cc @@ -48,13 +48,6 @@ bool AutomationResourceTrackerImpl::ContainsHandleImpl(int handle) { return handle_to_resource_.find(handle) != handle_to_resource_.end(); } -void AutomationResourceTrackerImpl::ClearAllMappingsImpl() { - while (!resource_to_handle_.empty()) { - RemoveImpl(resource_to_handle_.begin()->first); - } - cleared_mappings_ = true; -} - void* AutomationResourceTrackerImpl::GetResourceImpl(int handle) { HandleToResourceMap::const_iterator iter = handle_to_resource_.find(handle); if (iter == handle_to_resource_.end()) |