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

Unified Diff: win8/metro_driver/winrt_utils.cc

Issue 119733002: Add base:: to string16s in win8/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: merge Created 7 years 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 | « win8/metro_driver/winrt_utils.h ('k') | win8/test/metro_registration_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: win8/metro_driver/winrt_utils.cc
diff --git a/win8/metro_driver/winrt_utils.cc b/win8/metro_driver/winrt_utils.cc
index 6d66cec2328ca816d6e830aacdda7de157d0bc14..26da18a2266f401e8b22d4a6db05437fb5360d59 100644
--- a/win8/metro_driver/winrt_utils.cc
+++ b/win8/metro_driver/winrt_utils.cc
@@ -23,7 +23,7 @@ void CheckHR(HRESULT hr, const char* message) {
}
}
-HSTRING MakeHString(const string16& str) {
+HSTRING MakeHString(const base::string16& str) {
HSTRING hstr;
if (FAILED(::WindowsCreateString(str.c_str(), static_cast<UINT32>(str.size()),
&hstr))) {
@@ -32,13 +32,13 @@ HSTRING MakeHString(const string16& str) {
return hstr;
}
-string16 MakeStdWString(HSTRING hstring) {
+base::string16 MakeStdWString(HSTRING hstring) {
const wchar_t* str;
UINT32 size = 0;
str = ::WindowsGetStringRawBuffer(hstring, &size);
if (!size)
- return string16();
- return string16(str, size);
+ return base::string16();
+ return base::string16(str, size);
}
namespace {
@@ -170,7 +170,7 @@ HRESULT CompareProperties(winfoundtn::IPropertyValue* lhs,
}
bool GetArgumentsFromShortcut(const base::FilePath& shortcut,
- string16* arguments) {
+ base::string16* arguments) {
HRESULT result;
base::win::ScopedComPtr<IShellLink> i_shell_link;
bool is_resolved = false;
@@ -200,7 +200,7 @@ bool GetArgumentsFromShortcut(const base::FilePath& shortcut,
return is_resolved;
}
-string16 ReadArgumentsFromPinnedTaskbarShortcut() {
+base::string16 ReadArgumentsFromPinnedTaskbarShortcut() {
wchar_t path_buffer[MAX_PATH] = {};
if (SUCCEEDED(SHGetFolderPath(NULL, CSIDL_APPDATA, NULL,
@@ -214,7 +214,7 @@ string16 ReadArgumentsFromPinnedTaskbarShortcut() {
BrowserDistribution::SHORTCUT_CHROME) + installer::kLnkExt;
shortcut = shortcut.Append(link_name);
- string16 arguments;
+ base::string16 arguments;
if (GetArgumentsFromShortcut(shortcut, &arguments)) {
return arguments;
}
« no previous file with comments | « win8/metro_driver/winrt_utils.h ('k') | win8/test/metro_registration_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698