summaryrefslogtreecommitdiffstats
path: root/printing/printing_context.cc
diff options
context:
space:
mode:
authorthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:58:51 +0000
committerthestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-18 20:58:51 +0000
commitd91db11a358380d9581130cd785f824282207d42 (patch)
treea2c0f521aba51b95d195b8d45c38aa647c13e8b8 /printing/printing_context.cc
parentc54c43e735b1e3e5e6900700d1accec4fcbf5926 (diff)
downloadchromium_src-d91db11a358380d9581130cd785f824282207d42.zip
chromium_src-d91db11a358380d9581130cd785f824282207d42.tar.gz
chromium_src-d91db11a358380d9581130cd785f824282207d42.tar.bz2
Cleanup: Remove unneeded namespaces.
BUG=none TEST=none Review URL: http://codereview.chromium.org/8334007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@106129 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'printing/printing_context.cc')
-rw-r--r--printing/printing_context.cc19
1 files changed, 8 insertions, 11 deletions
diff --git a/printing/printing_context.cc b/printing/printing_context.cc
index 46c0e6e..cc39e6c 100644
--- a/printing/printing_context.cc
+++ b/printing/printing_context.cc
@@ -46,13 +46,13 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
const PageRanges& ranges) {
ResetSettings();
- if (!job_settings.GetBoolean(printing::kSettingHeaderFooterEnabled,
+ if (!job_settings.GetBoolean(kSettingHeaderFooterEnabled,
&settings_.display_header_footer)) {
NOTREACHED();
}
int margin_type = DEFAULT_MARGINS;
- if (!job_settings.GetInteger(printing::kSettingMarginsType, &margin_type) ||
+ if (!job_settings.GetInteger(kSettingMarginsType, &margin_type) ||
(margin_type != DEFAULT_MARGINS &&
margin_type != NO_MARGINS &&
margin_type != CUSTOM_MARGINS &&
@@ -67,15 +67,13 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
double left_margin_in_points = 0;
double right_margin_in_points = 0;
DictionaryValue* custom_margins;
- if (!job_settings.GetDictionary(printing::kSettingMarginsCustom,
- &custom_margins) ||
- !custom_margins->GetDouble(printing::kSettingMarginTop,
- &top_margin_in_points) ||
- !custom_margins->GetDouble(printing::kSettingMarginBottom,
+ if (!job_settings.GetDictionary(kSettingMarginsCustom, &custom_margins) ||
+ !custom_margins->GetDouble(kSettingMarginTop, &top_margin_in_points) ||
+ !custom_margins->GetDouble(kSettingMarginBottom,
&bottom_margin_in_points) ||
- !custom_margins->GetDouble(printing::kSettingMarginLeft,
+ !custom_margins->GetDouble(kSettingMarginLeft,
&left_margin_in_points) ||
- !custom_margins->GetDouble(printing::kSettingMarginRight,
+ !custom_margins->GetDouble(kSettingMarginRight,
&right_margin_in_points)) {
NOTREACHED();
}
@@ -90,8 +88,7 @@ PrintingContext::Result PrintingContext::UpdatePrintSettings(
}
PrintingContext::Result result = UpdatePrinterSettings(job_settings, ranges);
- printing::PrintSettingsInitializer::InitHeaderFooterStrings(job_settings,
- &settings_);
+ PrintSettingsInitializer::InitHeaderFooterStrings(job_settings, &settings_);
return result;
}