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

Unified Diff: chrome/browser/automation/automation_tab_tracker.h

Issue 7995: Move Time, TimeDelta and TimeTicks into namespace base. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 12 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/automation/automation_tab_tracker.h
===================================================================
--- chrome/browser/automation/automation_tab_tracker.h (revision 3954)
+++ chrome/browser/automation/automation_tab_tracker.h (working copy)
@@ -52,11 +52,11 @@
switch (type) {
case NOTIFY_NAV_ENTRY_COMMITTED:
last_navigation_times_[Source<NavigationController>(source).ptr()] =
- Time::Now();
+ base::Time::Now();
return;
case NOTIFY_EXTERNAL_TAB_CLOSED:
case NOTIFY_TAB_CLOSING:
- std::map<NavigationController*, Time>::iterator iter =
+ std::map<NavigationController*, base::Time>::iterator iter =
last_navigation_times_.find(
Source<NavigationController>(source).ptr());
if (iter != last_navigation_times_.end())
@@ -66,22 +66,22 @@
AutomationResourceTracker::Observe(type, source, details);
}
- Time GetLastNavigationTime(int handle) {
+ base::Time GetLastNavigationTime(int handle) {
if (ContainsHandle(handle)) {
NavigationController* controller = GetResource(handle);
if (controller) {
- std::map<NavigationController*, Time>::const_iterator iter =
+ std::map<NavigationController*, base::Time>::const_iterator iter =
last_navigation_times_.find(controller);
if (iter != last_navigation_times_.end())
return iter->second;
}
}
- return Time();
+ return base::Time();
}
private:
// Last time a navigation occurred.
- std::map<NavigationController*, Time> last_navigation_times_;
+ std::map<NavigationController*, base::Time> last_navigation_times_;
DISALLOW_COPY_AND_ASSIGN(AutomationTabTracker);
};

Powered by Google App Engine
This is Rietveld 408576698