diff options
author | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:25:45 +0000 |
---|---|---|
committer | phajdan.jr@chromium.org <phajdan.jr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-02-25 18:25:45 +0000 |
commit | de246f570b68acaf037db138fa871b791132ef30 (patch) | |
tree | 06b8b6d614806c47f771e76331328e5c38e9c659 /chrome/browser/automation/automation_tab_tracker.h | |
parent | 625edd6ec115e7de3dd1e7d1e6f20f934b3cdcfe (diff) | |
download | chromium_src-de246f570b68acaf037db138fa871b791132ef30.zip chromium_src-de246f570b68acaf037db138fa871b791132ef30.tar.gz chromium_src-de246f570b68acaf037db138fa871b791132ef30.tar.bz2 |
Compile parts of chrome/browser/automation on Linux.
This patch involves heavy temporary stubbing-out of windowsic parts
of automation framework.
Review URL: http://codereview.chromium.org/28092
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@10351 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/automation/automation_tab_tracker.h')
-rw-r--r-- | chrome/browser/automation/automation_tab_tracker.h | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/chrome/browser/automation/automation_tab_tracker.h b/chrome/browser/automation/automation_tab_tracker.h index d119915..70172ec 100644 --- a/chrome/browser/automation/automation_tab_tracker.h +++ b/chrome/browser/automation/automation_tab_tracker.h @@ -16,7 +16,7 @@ class AutomationTabTracker : public AutomationResourceTracker<NavigationController*> { public: AutomationTabTracker(IPC::Message::Sender* automation) - : AutomationResourceTracker(automation) {} + : AutomationResourceTracker<NavigationController*>(automation) {} virtual ~AutomationTabTracker() { ClearAllMappings(); @@ -54,14 +54,19 @@ public: return; case NotificationType::EXTERNAL_TAB_CLOSED: case NotificationType::TAB_CLOSING: - std::map<NavigationController*, base::Time>::iterator iter = - last_navigation_times_.find( - Source<NavigationController>(source).ptr()); - if (iter != last_navigation_times_.end()) - last_navigation_times_.erase(iter); + { + std::map<NavigationController*, base::Time>::iterator iter = + last_navigation_times_.find( + Source<NavigationController>(source).ptr()); + if (iter != last_navigation_times_.end()) + last_navigation_times_.erase(iter); + } break; + default: + NOTREACHED(); } - AutomationResourceTracker::Observe(type, source, details); + AutomationResourceTracker<NavigationController*>::Observe(type, source, + details); } base::Time GetLastNavigationTime(int handle) { |