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

Unified Diff: chrome_frame/test/reliability/run_all_unittests.cc

Issue 3057033: Remove GetSwitchValue() from chrome/* where easy. (Closed)
Patch Set: finally Created 10 years, 4 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
Index: chrome_frame/test/reliability/run_all_unittests.cc
diff --git a/chrome_frame/test/reliability/run_all_unittests.cc b/chrome_frame/test/reliability/run_all_unittests.cc
index 3b2604d5bcc8e2e3cc44e25ce2587900909c0412..26510e5ff1dec6dfeeea285418bdfaa2ded91aff 100644
--- a/chrome_frame/test/reliability/run_all_unittests.cc
+++ b/chrome_frame/test/reliability/run_all_unittests.cc
@@ -10,7 +10,7 @@
#include "chrome_frame/test_utils.h"
#include "chrome_frame/utils.h"
-const wchar_t kRegisterDllFlag[] = L"register";
+static const char kRegisterDllFlag[] = "register";
int main(int argc, char **argv) {
@@ -29,7 +29,7 @@ int main(int argc, char **argv) {
int result = -1;
if (cmd_line->HasSwitch(kRegisterDllFlag)) {
- std::wstring dll_path = cmd_line->GetSwitchValue(kRegisterDllFlag);
+ std::wstring dll_path = cmd_line->GetSwitchValueNative(kRegisterDllFlag);
// Run() must be called within the scope of the ScopedChromeFrameRegistrar
// to ensure that the correct DLL remains registered during the tests.

Powered by Google App Engine
This is Rietveld 408576698