diff options
author | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 18:35:42 +0000 |
---|---|---|
committer | avi@chromium.org <avi@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-12-23 18:35:42 +0000 |
commit | 4f260d0c40e2b63d2af72d667ca5b0518c2dff84 (patch) | |
tree | 2c976dd8b8dc5c217646627205e61728e8891b03 /chrome | |
parent | b3ae5db129f88dae153880e84bdabea8ce2ca89b (diff) | |
download | chromium_src-4f260d0c40e2b63d2af72d667ca5b0518c2dff84.zip chromium_src-4f260d0c40e2b63d2af72d667ca5b0518c2dff84.tar.gz chromium_src-4f260d0c40e2b63d2af72d667ca5b0518c2dff84.tar.bz2 |
Update file version info/memory details/process utils to use string16.
BUG=23581
TEST=everything still works
Review URL: http://codereview.chromium.org/5968008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70071 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/app/breakpad_win.cc | 2 | ||||
-rw-r--r-- | chrome/browser/automation/testing_automation_provider.cc | 6 | ||||
-rw-r--r-- | chrome/browser/browser_about_handler.cc | 11 | ||||
-rw-r--r-- | chrome/browser/memory_details.cc | 8 | ||||
-rw-r--r-- | chrome/browser/memory_details.h | 11 | ||||
-rw-r--r-- | chrome/browser/memory_details_linux.cc | 6 | ||||
-rw-r--r-- | chrome/browser/memory_details_mac.cc | 34 | ||||
-rw-r--r-- | chrome/browser/memory_details_win.cc | 3 | ||||
-rw-r--r-- | chrome/browser/process_singleton_linux.cc | 2 | ||||
-rw-r--r-- | chrome/browser/process_singleton_uitest.cc | 2 | ||||
-rw-r--r-- | chrome/browser/shell_integration_linux.cc | 2 | ||||
-rw-r--r-- | chrome/browser/shell_integration_unittest.cc | 2 | ||||
-rw-r--r-- | chrome/common/chrome_constants.cc | 23 | ||||
-rw-r--r-- | chrome/common/chrome_constants.h | 6 | ||||
-rw-r--r-- | chrome/common/chrome_version_info.cc | 6 | ||||
-rw-r--r-- | chrome/test/in_process_browser_test.cc | 5 | ||||
-rw-r--r-- | chrome/test/reliability/page_load_test.cc | 3 | ||||
-rw-r--r-- | chrome/test/startup/startup_test.cc | 2 | ||||
-rw-r--r-- | chrome/test/ui/ui_test.cc | 2 |
19 files changed, 67 insertions, 69 deletions
diff --git a/chrome/app/breakpad_win.cc b/chrome/app/breakpad_win.cc index 863dda6..017e61d 100644 --- a/chrome/app/breakpad_win.cc +++ b/chrome/app/breakpad_win.cc @@ -92,7 +92,7 @@ std::wstring TrimToBreakpadMax(const std::wstring& str) { google_breakpad::CustomClientInfo* GetCustomInfo(const std::wstring& dll_path, const std::wstring& type) { scoped_ptr<FileVersionInfo> - version_info(FileVersionInfo::CreateFileVersionInfo(dll_path)); + version_info(FileVersionInfo::CreateFileVersionInfo(FilePath(dll_path))); std::wstring version, product; if (version_info.get()) { diff --git a/chrome/browser/automation/testing_automation_provider.cc b/chrome/browser/automation/testing_automation_provider.cc index 9d5c3e6..9ecc0ef 100644 --- a/chrome/browser/automation/testing_automation_provider.cc +++ b/chrome/browser/automation/testing_automation_provider.cc @@ -2339,11 +2339,11 @@ void TestingAutomationProvider::GetBrowserInfo( DictionaryValue* properties = new DictionaryValue; properties->SetString("ChromeVersion", chrome::kChromeVersion); properties->SetString("BrowserProcessExecutableName", - WideToUTF16Hack(chrome::kBrowserProcessExecutableName)); + chrome::kBrowserProcessExecutableName); properties->SetString("HelperProcessExecutableName", - WideToUTF16Hack(chrome::kHelperProcessExecutableName)); + chrome::kHelperProcessExecutableName); properties->SetString("BrowserProcessExecutablePath", - WideToUTF16Hack(chrome::kBrowserProcessExecutablePath)); + chrome::kBrowserProcessExecutablePath); properties->SetString("HelperProcessExecutablePath", chrome::kHelperProcessExecutablePath); properties->SetString("command_line_string", diff --git a/chrome/browser/browser_about_handler.cc b/chrome/browser/browser_about_handler.cc index af18da1..715f460 100644 --- a/chrome/browser/browser_about_handler.cc +++ b/chrome/browser/browser_about_handler.cc @@ -836,7 +836,7 @@ void AboutMemoryHandler::BindProcessMetrics(DictionaryValue* data, data->SetInteger("comm_map", static_cast<int>(info->committed.mapped)); data->SetInteger("comm_image", static_cast<int>(info->committed.image)); data->SetInteger("pid", info->pid); - data->SetString("version", WideToUTF16Hack(info->version)); + data->SetString("version", info->version); data->SetInteger("processes", info->num_processes); } @@ -858,7 +858,7 @@ void AboutMemoryHandler::AppendProcess(ListValue* child_data, ListValue* titles = new ListValue(); child->Set("titles", titles); for (size_t i = 0; i < info->titles.size(); ++i) - titles->Append(new StringValue(WideToUTF16Hack(info->titles[i]))); + titles->Append(new StringValue(info->titles[i])); } @@ -897,15 +897,14 @@ void AboutMemoryHandler::OnDetailsAvailable() { } DictionaryValue* browser_data = new DictionaryValue(); browsers->Append(browser_data); - browser_data->SetString("name", - WideToUTF16Hack(browser_processes[index].name)); + browser_data->SetString("name", browser_processes[index].name); BindProcessMetrics(browser_data, &aggregate); // We log memory info as we record it. if (log_string.length() > 0) log_string.append(L", "); - log_string.append(browser_processes[index].name); + log_string.append(UTF16ToWide(browser_processes[index].name)); log_string.append(L", "); log_string.append(UTF8ToWide( base::Int64ToString(aggregate.working_set.priv))); @@ -926,7 +925,7 @@ void AboutMemoryHandler::OnDetailsAvailable() { root.Set("child_data", child_data); ProcessData process = browser_processes[0]; // Chrome is the first browser. - root.SetString("current_browser_name", WideToUTF16Hack(process.name)); + root.SetString("current_browser_name", process.name); for (size_t index = 0; index < process.processes.size(); index++) { if (process.processes[index].type == ChildProcessInfo::BROWSER_PROCESS) diff --git a/chrome/browser/memory_details.cc b/chrome/browser/memory_details.cc index cd72b25..6f83083 100644 --- a/chrome/browser/memory_details.cc +++ b/chrome/browser/memory_details.cc @@ -4,6 +4,7 @@ #include "chrome/browser/memory_details.h" +#include "app/l10n_util.h" #include "base/file_version_info.h" #include "base/metrics/histogram.h" #include "base/process_util.h" @@ -18,6 +19,7 @@ #include "chrome/browser/tab_contents/tab_contents.h" #include "chrome/common/url_constants.h" #include "grit/chromium_strings.h" +#include "grit/generated_resources.h" #if defined(OS_LINUX) #include "chrome/browser/zygote_host_linux.h" @@ -88,7 +90,7 @@ void MemoryDetails::CollectChildInfoOnIOThread() { continue; info.type = iter->type(); - info.titles.push_back(iter->name()); + info.titles.push_back(WideToUTF16Hack(iter->name())); child_info.push_back(info); } @@ -149,9 +151,9 @@ void MemoryDetails::CollectChildInfoOnUIThread() { contents = host->delegate()->GetAsTabContents(); if (!contents) continue; - std::wstring title = UTF16ToWideHack(contents->GetTitle()); + string16 title = contents->GetTitle(); if (!title.length()) - title = L"Untitled"; + title = l10n_util::GetStringUTF16(IDS_DEFAULT_TAB_TITLE); process.titles.push_back(title); // We need to check the pending entry as well as the virtual_url to diff --git a/chrome/browser/memory_details.h b/chrome/browser/memory_details.h index 2b152b6..b39a1a6 100644 --- a/chrome/browser/memory_details.h +++ b/chrome/browser/memory_details.h @@ -10,6 +10,7 @@ #include "base/process_util.h" #include "base/ref_counted.h" +#include "base/string16.h" #include "chrome/common/child_process_info.h" // We collect data about each browser process. A browser may @@ -26,9 +27,9 @@ struct ProcessMemoryInformation { // The committed bytes. base::CommittedKBytes committed; // The process version - std::wstring version; + string16 version; // The process product name. - std::wstring product_name; + string16 product_name; // The number of processes which this memory represents. int num_processes; // A process is a diagnostics process if it is rendering @@ -37,7 +38,7 @@ struct ProcessMemoryInformation { // If this is a child process of Chrome, what type (i.e. plugin) it is. ChildProcessInfo::ProcessType type; // A collection of titles used, i.e. for a tab it'll show all the page titles. - std::vector<std::wstring> titles; + std::vector<string16> titles; }; typedef std::vector<ProcessMemoryInformation> ProcessMemoryInformationList; @@ -49,8 +50,8 @@ struct ProcessData { ~ProcessData(); ProcessData& operator=(const ProcessData& rhs); - std::wstring name; - std::wstring process_name; + string16 name; + string16 process_name; ProcessMemoryInformationList processes; }; diff --git a/chrome/browser/memory_details_linux.cc b/chrome/browser/memory_details_linux.cc index 14506c3..a5e58b8 100644 --- a/chrome/browser/memory_details_linux.cc +++ b/chrome/browser/memory_details_linux.cc @@ -240,8 +240,8 @@ void MemoryDetails::CollectProcessData( GetAllChildren(processes, getpid(), zygote, ¤t_browser_processes); ProcessData current_browser; GetProcessDataMemoryInformation(current_browser_processes, ¤t_browser); - current_browser.name = chrome::kBrowserAppName; - current_browser.process_name = L"chrome"; + current_browser.name = WideToUTF16(chrome::kBrowserAppName); + current_browser.process_name = ASCIIToUTF16("chrome"); process_data_.push_back(current_browser); // For each browser process, collect a list of its children and get the @@ -258,7 +258,7 @@ void MemoryDetails::CollectProcessData( if (j->pid == *i) { BrowserType type = GetBrowserType(j->name); if (type != MAX_BROWSERS) - browser.name = ASCIIToWide(kBrowserPrettyNames[type]); + browser.name = ASCIIToUTF16(kBrowserPrettyNames[type]); break; } } diff --git a/chrome/browser/memory_details_mac.cc b/chrome/browser/memory_details_mac.cc index b17d25f..09a298f 100644 --- a/chrome/browser/memory_details_mac.cc +++ b/chrome/browser/memory_details_mac.cc @@ -51,8 +51,8 @@ enum BrowserType { MemoryDetails::MemoryDetails() { - static const std::wstring google_browser_name = - l10n_util::GetString(IDS_PRODUCT_NAME); + static const std::string google_browser_name = + l10n_util::GetStringUTF8(IDS_PRODUCT_NAME); // (Human and process) names of browsers; should match the ordering for // |BrowserProcess| (i.e., |BrowserType|). // TODO(viettrungluu): The current setup means that we can't detect both @@ -60,21 +60,21 @@ MemoryDetails::MemoryDetails() { // TODO(viettrungluu): Get localized browser names for other browsers // (crbug.com/25779). struct { - const wchar_t* name; - const wchar_t* process_name; + const char* name; + const char* process_name; } process_template[MAX_BROWSERS] = { { google_browser_name.c_str(), chrome::kBrowserProcessExecutableName, }, - { L"Safari", L"Safari", }, - { L"Firefox", L"firefox-bin", }, - { L"Camino", L"Camino", }, - { L"Opera", L"Opera", }, - { L"OmniWeb", L"OmniWeb", }, + { "Safari", "Safari", }, + { "Firefox", "firefox-bin", }, + { "Camino", "Camino", }, + { "Opera", "Opera", }, + { "OmniWeb", "OmniWeb", }, }; for (size_t index = 0; index < MAX_BROWSERS; ++index) { ProcessData process; - process.name = process_template[index].name; - process.process_name = process_template[index].process_name; + process.name = UTF8ToUTF16(process_template[index].name); + process.process_name = UTF8ToUTF16(process_template[index].process_name); process_data_.push_back(process); } } @@ -104,8 +104,8 @@ void MemoryDetails::CollectProcessData( std::vector<base::ProcessId> pids_by_browser[MAX_BROWSERS]; std::vector<base::ProcessId> all_pids; for (size_t index = CHROME_BROWSER; index < MAX_BROWSERS; index++) { - base::NamedProcessIterator process_it(process_data_[index].process_name, - NULL); + base::NamedProcessIterator process_it( + UTF16ToUTF8(process_data_[index].process_name), NULL); while (const base::ProcessEntry* entry = process_it.NextProcessEntry()) { pids_by_browser[index].push_back(entry->pid()); @@ -158,7 +158,7 @@ void MemoryDetails::CollectProcessData( info.version = version_info->product_version(); } else { info.product_name = process_data_[index].name; - info.version = L""; + info.version = string16(); } // Memory info. @@ -202,11 +202,11 @@ void MemoryDetails::CollectProcessDataChrome( chrome::VersionInfo version_info; if (version_info.is_valid()) { - info.product_name = ASCIIToWide(version_info.Name()); - info.version = ASCIIToWide(version_info.Version()); + info.product_name = ASCIIToUTF16(version_info.Name()); + info.version = ASCIIToUTF16(version_info.Version()); } else { info.product_name = process_data_[CHROME_BROWSER].name; - info.version = L""; + info.version = string16(); } // Check if this is one of the child processes whose data we collected diff --git a/chrome/browser/memory_details_win.cc b/chrome/browser/memory_details_win.cc index 959cebd..91f0b6d 100644 --- a/chrome/browser/memory_details_win.cc +++ b/chrome/browser/memory_details_win.cc @@ -6,6 +6,7 @@ #include <psapi.h> #include "app/l10n_util.h" +#include "base/file_path.h" #include "base/file_version_info.h" #include "base/string_util.h" #include "base/utf_string_conversions.h" @@ -135,7 +136,7 @@ void MemoryDetails::CollectProcessData( } else if (GetModuleFileNameEx(handle, NULL, name, MAX_PATH - 1)) { std::wstring str_name(name); scoped_ptr<FileVersionInfo> version_info( - FileVersionInfo::CreateFileVersionInfo(str_name)); + FileVersionInfo::CreateFileVersionInfo(FilePath(str_name))); if (version_info != NULL) { info.version = version_info->product_version(); info.product_name = version_info->product_name(); diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc index 8418ee9..a95d668 100644 --- a/chrome/browser/process_singleton_linux.cc +++ b/chrome/browser/process_singleton_linux.cc @@ -315,7 +315,7 @@ bool IsChromeProcess(pid_t pid) { FilePath other_chrome_path(base::GetProcessExecutablePath(pid)); return (!other_chrome_path.empty() && other_chrome_path.BaseName() == - FilePath::FromWStringHack(chrome::kBrowserProcessExecutableName)); + FilePath(chrome::kBrowserProcessExecutableName)); } // Return true if the given pid is one of our child processes. diff --git a/chrome/browser/process_singleton_uitest.cc b/chrome/browser/process_singleton_uitest.cc index 57656c2..f04b29f 100644 --- a/chrome/browser/process_singleton_uitest.cc +++ b/chrome/browser/process_singleton_uitest.cc @@ -61,7 +61,7 @@ class ChromeStarter : public base::RefCountedThreadSafe<ChromeStarter> { FilePath browser_directory; PathService::Get(chrome::DIR_APP, &browser_directory); CommandLine command_line(browser_directory.Append( - FilePath::FromWStringHack(chrome::kBrowserProcessExecutablePath))); + chrome::kBrowserProcessExecutablePath)); command_line.AppendSwitchPath(switches::kUserDataDir, user_data_dir_); diff --git a/chrome/browser/shell_integration_linux.cc b/chrome/browser/shell_integration_linux.cc index 8c0a8c4..b74df15 100644 --- a/chrome/browser/shell_integration_linux.cc +++ b/chrome/browser/shell_integration_linux.cc @@ -293,7 +293,7 @@ bool ShellIntegration::GetDesktopShortcutTemplate( FilePath ShellIntegration::GetDesktopShortcutFilename(const GURL& url) { // Use a prefix, because xdg-desktop-menu requires it. std::string filename = - WideToUTF8(chrome::kBrowserProcessExecutableName) + "-" + url.spec(); + std::string(chrome::kBrowserProcessExecutableName) + "-" + url.spec(); file_util::ReplaceIllegalCharactersInPath(&filename, '_'); FilePath desktop_path; diff --git a/chrome/browser/shell_integration_unittest.cc b/chrome/browser/shell_integration_unittest.cc index c832b74..9b9a218 100644 --- a/chrome/browser/shell_integration_unittest.cc +++ b/chrome/browser/shell_integration_unittest.cc @@ -150,7 +150,7 @@ TEST(ShellIntegrationTest, GetDesktopShortcutFilename) { { FPL("http___.._.desktop"), "http://../../../../" }, }; for (size_t i = 0; i < ARRAYSIZE_UNSAFE(test_cases); i++) { - EXPECT_EQ(WideToASCII(chrome::kBrowserProcessExecutableName) + "-" + + EXPECT_EQ(std::string(chrome::kBrowserProcessExecutableName) + "-" + test_cases[i].path, ShellIntegration::GetDesktopShortcutFilename( GURL(test_cases[i].url)).value()) << diff --git a/chrome/common/chrome_constants.cc b/chrome/common/chrome_constants.cc index 61edf54..97bb58e 100644 --- a/chrome/common/chrome_constants.cc +++ b/chrome/common/chrome_constants.cc @@ -11,10 +11,8 @@ #if defined(OS_MACOSX) #if defined(GOOGLE_CHROME_BUILD) #define PRODUCT_STRING "Google Chrome" -#define PRODUCT_STRING_W L"Google Chrome" #elif defined(CHROMIUM_BUILD) #define PRODUCT_STRING "Chromium" -#define PRODUCT_STRING_W L"Chromium" #else #error Unknown branding #endif @@ -27,26 +25,27 @@ const char kChromeVersionEnvVar[] = "CHROME_VERSION"; // The following should not be used for UI strings; they are meant // for system strings only. UI changes should be made in the GRD. #if defined(OS_WIN) -const wchar_t kBrowserProcessExecutableName[] = L"chrome.exe"; -const wchar_t kHelperProcessExecutableName[] = L"chrome.exe"; +const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome.exe"); +const FilePath::CharType kHelperProcessExecutableName[] = FPL("chrome.exe"); #elif defined(OS_LINUX) -const wchar_t kBrowserProcessExecutableName[] = L"chrome"; +const FilePath::CharType kBrowserProcessExecutableName[] = FPL("chrome"); // Helper processes end up with a name of "exe" due to execing via // /proc/self/exe. See bug 22703. -const wchar_t kHelperProcessExecutableName[] = L"exe"; +const FilePath::CharType kHelperProcessExecutableName[] = FPL("exe"); #elif defined(OS_MACOSX) -const wchar_t kBrowserProcessExecutableName[] = PRODUCT_STRING_W; -const wchar_t kHelperProcessExecutableName[] = PRODUCT_STRING_W L" Helper"; +const FilePath::CharType kBrowserProcessExecutableName[] = FPL(PRODUCT_STRING); +const FilePath::CharType kHelperProcessExecutableName[] = + FPL(PRODUCT_STRING " Helper"); #endif // OS_* #if defined(OS_WIN) -const wchar_t kBrowserProcessExecutablePath[] = L"chrome.exe"; +const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome.exe"); const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome.exe"); #elif defined(OS_LINUX) -const wchar_t kBrowserProcessExecutablePath[] = L"chrome"; +const FilePath::CharType kBrowserProcessExecutablePath[] = FPL("chrome"); const FilePath::CharType kHelperProcessExecutablePath[] = FPL("chrome"); #elif defined(OS_MACOSX) -const wchar_t kBrowserProcessExecutablePath[] = - PRODUCT_STRING_W L".app/Contents/MacOS/" PRODUCT_STRING_W; +const FilePath::CharType kBrowserProcessExecutablePath[] = + FPL(PRODUCT_STRING ".app/Contents/MacOS/" PRODUCT_STRING); const FilePath::CharType kHelperProcessExecutablePath[] = FPL(PRODUCT_STRING " Helper.app/Contents/MacOS/" PRODUCT_STRING " Helper"); #endif // OS_* diff --git a/chrome/common/chrome_constants.h b/chrome/common/chrome_constants.h index 57e48a86..56be2f8 100644 --- a/chrome/common/chrome_constants.h +++ b/chrome/common/chrome_constants.h @@ -16,9 +16,9 @@ extern const char kChromeVersion[]; extern const char kChromeVersionEnvVar[]; -extern const wchar_t kBrowserProcessExecutableName[]; -extern const wchar_t kHelperProcessExecutableName[]; -extern const wchar_t kBrowserProcessExecutablePath[]; +extern const FilePath::CharType kBrowserProcessExecutableName[]; +extern const FilePath::CharType kHelperProcessExecutableName[]; +extern const FilePath::CharType kBrowserProcessExecutablePath[]; extern const FilePath::CharType kHelperProcessExecutablePath[]; #if defined(OS_MACOSX) extern const FilePath::CharType kFrameworkName[]; diff --git a/chrome/common/chrome_version_info.cc b/chrome/common/chrome_version_info.cc index 5157c4a..7bca883 100644 --- a/chrome/common/chrome_version_info.cc +++ b/chrome/common/chrome_version_info.cc @@ -32,19 +32,19 @@ bool VersionInfo::is_valid() const { std::string VersionInfo::Name() const { if (!is_valid()) return std::string(); - return WideToASCII(version_info_->product_name()); + return UTF16ToASCII(version_info_->product_name()); } std::string VersionInfo::Version() const { if (!is_valid()) return std::string(); - return WideToASCII(version_info_->product_version()); + return UTF16ToASCII(version_info_->product_version()); } std::string VersionInfo::LastChange() const { if (!is_valid()) return std::string(); - return WideToASCII(version_info_->last_change()); + return UTF16ToASCII(version_info_->last_change()); } bool VersionInfo::IsOfficialBuild() const { diff --git a/chrome/test/in_process_browser_test.cc b/chrome/test/in_process_browser_test.cc index 39e8524..a90b265 100644 --- a/chrome/test/in_process_browser_test.cc +++ b/chrome/test/in_process_browser_test.cc @@ -88,12 +88,7 @@ InProcessBrowserTest::InProcessBrowserTest() FilePath chrome_path; CHECK(PathService::Get(base::FILE_EXE, &chrome_path)); chrome_path = chrome_path.DirName(); -#if defined(OS_WIN) chrome_path = chrome_path.Append(chrome::kBrowserProcessExecutablePath); -#elif defined(OS_POSIX) - chrome_path = chrome_path.Append( - WideToASCII(chrome::kBrowserProcessExecutablePath)); -#endif CHECK(PathService::Override(base::FILE_EXE, chrome_path)); test_server_.reset(new net::TestServer( diff --git a/chrome/test/reliability/page_load_test.cc b/chrome/test/reliability/page_load_test.cc index 24bf087..ffa6190 100644 --- a/chrome/test/reliability/page_load_test.cc +++ b/chrome/test/reliability/page_load_test.cc @@ -163,7 +163,8 @@ class PageLoadTest : public UITest { #if defined(OS_WIN) // Check file version info for chrome dll. scoped_ptr<FileVersionInfo> file_info; - file_info.reset(FileVersionInfo::CreateFileVersionInfo(kChromeDll)); + file_info.reset( + FileVersionInfo::CreateFileVersionInfo(FilePath(kChromeDll))); last_change = WideToASCII(file_info->last_change()); #elif defined(OS_LINUX) || defined(OS_MACOSX) // TODO(fmeawad): On Mac, the version retrieved here belongs to the test diff --git a/chrome/test/startup/startup_test.cc b/chrome/test/startup/startup_test.cc index 5cbdc10..e78083f 100644 --- a/chrome/test/startup/startup_test.cc +++ b/chrome/test/startup/startup_test.cc @@ -135,7 +135,7 @@ class StartupTest : public UIPerfTest { ASSERT_TRUE(PathService::Get(chrome::DIR_APP, &dir_app)); FilePath chrome_exe(dir_app.Append( - FilePath::FromWStringHack(chrome::kBrowserProcessExecutablePath))); + chrome::kBrowserProcessExecutablePath)); ASSERT_TRUE(EvictFileFromSystemCacheWrapper(chrome_exe)); #if defined(OS_WIN) // chrome.dll is windows specific. diff --git a/chrome/test/ui/ui_test.cc b/chrome/test/ui/ui_test.cc index f8c723b..ebc285ad 100644 --- a/chrome/test/ui/ui_test.cc +++ b/chrome/test/ui/ui_test.cc @@ -756,7 +756,7 @@ bool UITestBase::LaunchBrowserHelper(const CommandLine& arguments, bool wait, base::ProcessHandle* process) { FilePath command = browser_directory_.Append( - FilePath::FromWStringHack(chrome::kBrowserProcessExecutablePath)); + chrome::kBrowserProcessExecutablePath); CommandLine command_line(command); |