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

Unified Diff: chrome/browser/shell_integration_linux.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/sessions/session_restore.cc ('k') | chrome/browser/sync/glue/session_model_associator.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/shell_integration_linux.cc
diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc
index 4bb65041515568c25381b0f44cb2289d8a7cf2c9..8a69fee4fa5c867aee7860f778c1e79e7e118d43 100644
--- a/chrome/browser/shell_integration_linux.cc
+++ b/chrome/browser/shell_integration_linux.cc
@@ -23,9 +23,9 @@
#include "base/message_loop.h"
#include "base/path_service.h"
#include "base/process_util.h"
+#include "base/stringprintf.h"
#include "base/string_number_conversions.h"
#include "base/string_tokenizer.h"
-#include "base/string_util.h"
#include "base/task.h"
#include "base/threading/thread.h"
#include "base/utf_string_conversions.h"
@@ -407,7 +407,7 @@ std::string ShellIntegration::GetDesktopFileContents(
final_title.find("\r") != std::string::npos) {
final_title = url.spec();
}
- output_buffer += StringPrintf("Name=%s\n", final_title.c_str());
+ output_buffer += base::StringPrintf("Name=%s\n", final_title.c_str());
} else if (tokenizer.token().substr(0, 11) == "GenericName" ||
tokenizer.token().substr(0, 7) == "Comment" ||
tokenizer.token().substr(0, 1) == "#") {
@@ -420,7 +420,7 @@ std::string ShellIntegration::GetDesktopFileContents(
// different one based on the app name below.
} else if (tokenizer.token().substr(0, 5) == "Icon=" &&
!icon_name.empty()) {
- output_buffer += StringPrintf("Icon=%s\n", icon_name.c_str());
+ output_buffer += base::StringPrintf("Icon=%s\n", icon_name.c_str());
} else {
output_buffer += tokenizer.token() + "\n";
}
@@ -429,7 +429,7 @@ std::string ShellIntegration::GetDesktopFileContents(
#if defined(TOOLKIT_USES_GTK)
std::string wmclass = web_app::GetWMClassFromAppName(app_name);
if (!wmclass.empty()) {
- output_buffer += StringPrintf("StartupWMClass=%s\n", wmclass.c_str());
+ output_buffer += base::StringPrintf("StartupWMClass=%s\n", wmclass.c_str());
}
#endif
« no previous file with comments | « chrome/browser/sessions/session_restore.cc ('k') | chrome/browser/sync/glue/session_model_associator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698