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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 7004007: iwyu: Include stringprintf.h where appropriate, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix 2. Created 9 years, 7 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
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index dea7abc4004f1c090b85c28100296e9bc90babf0..8838139dc40fb0b5f2a9df94037e2a12c189ea9f 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -14,7 +14,7 @@
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/stl_util-inl.h"
-#include "base/string_util.h"
+#include "base/stringprintf.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_service.h"
@@ -300,7 +300,8 @@ void TabLoader::Observe(NotificationType type,
// Record a time for the number of tabs, to help track down
// contention.
std::string time_for_count =
- StringPrintf("SessionRestore.FirstTabPainted_%d", tab_count_);
+ base::StringPrintf("SessionRestore.FirstTabPainted_%d",
+ tab_count_);
base::Histogram* counter_for_count =
base::Histogram::FactoryTimeGet(
time_for_count,
@@ -388,7 +389,7 @@ void TabLoader::HandleTabClosedOrLoaded(NavigationController* tab) {
100);
// Record a time for the number of tabs, to help track down contention.
std::string time_for_count =
- StringPrintf("SessionRestore.AllTabsLoaded_%d", tab_count_);
+ base::StringPrintf("SessionRestore.AllTabsLoaded_%d", tab_count_);
base::Histogram* counter_for_count =
base::Histogram::FactoryTimeGet(
time_for_count,
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | chrome/browser/shell_integration_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698