summaryrefslogtreecommitdiffstats
path: root/win8/metro_driver/winrt_utils.cc
diff options
context:
space:
mode:
authordbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 17:35:56 +0000
committerdbeam@chromium.org <dbeam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-12-20 17:35:56 +0000
commit4dcc2ec6b1a9417aab85183acbca64761ccdd32d (patch)
treeec1ac02e939a76a038f3c47824a34c36fb2de90e /win8/metro_driver/winrt_utils.cc
parentfdd91ad2e68f187bc301c30ecda7e503dae32126 (diff)
downloadchromium_src-4dcc2ec6b1a9417aab85183acbca64761ccdd32d.zip
chromium_src-4dcc2ec6b1a9417aab85183acbca64761ccdd32d.tar.gz
chromium_src-4dcc2ec6b1a9417aab85183acbca64761ccdd32d.tar.bz2
Add base:: to string16s in win8/.
R=grt@chromium.org BUG=329295 Review URL: https://codereview.chromium.org/119733002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@242114 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'win8/metro_driver/winrt_utils.cc')
-rw-r--r--win8/metro_driver/winrt_utils.cc14
1 files changed, 7 insertions, 7 deletions
diff --git a/win8/metro_driver/winrt_utils.cc b/win8/metro_driver/winrt_utils.cc
index 6d66cec..26da18a 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;
}