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

Unified Diff: chrome/browser/printing/print_dialog_cloud.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 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
Index: chrome/browser/printing/print_dialog_cloud.cc
diff --git a/chrome/browser/printing/print_dialog_cloud.cc b/chrome/browser/printing/print_dialog_cloud.cc
index fa26a10f83ab8f5c301292b82e14d39fd72accd4..1fbfbdd8048cb399794c3a6f9bf8d3680f7502dc 100644
--- a/chrome/browser/printing/print_dialog_cloud.cc
+++ b/chrome/browser/printing/print_dialog_cloud.cc
@@ -196,13 +196,13 @@ bool GetPageSetupParameters(const std::string& json,
return result;
}
-base::string16 GetSwitchValueString16(const CommandLine& command_line,
+base::string16 GetSwitchValueString16(const base::CommandLine& command_line,
const char* switchName) {
#if defined(OS_WIN)
return command_line.GetSwitchValueNative(switchName);
#elif defined(OS_POSIX)
// POSIX Command line string types are different.
- CommandLine::StringType native_switch_val;
+ base::CommandLine::StringType native_switch_val;
native_switch_val = command_line.GetSwitchValueASCII(switchName);
// Convert the ASCII string to UTF16 to prepare to pass.
return base::ASCIIToUTF16(native_switch_val);
@@ -748,7 +748,7 @@ void CreatePrintDialogForBytes(content::BrowserContext* browser_context,
}
bool CreatePrintDialogFromCommandLine(Profile* profile,
- const CommandLine& command_line) {
+ const base::CommandLine& command_line) {
DCHECK(command_line.HasSwitch(switches::kCloudPrintFile));
if (!command_line.GetSwitchValuePath(switches::kCloudPrintFile).empty()) {
base::FilePath cloud_print_file;

Powered by Google App Engine
This is Rietveld 408576698