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

Unified Diff: printing/page_number.cc

Issue 47823002: De-duplicate job_settings parsing code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Review Created 7 years, 2 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: printing/page_number.cc
diff --git a/printing/page_number.cc b/printing/page_number.cc
index 8e9287027e7159853148884b0e31a438c397cd3f..db3861dbdffd453d2b10b4494e917a60e3babbb1 100644
--- a/printing/page_number.cc
+++ b/printing/page_number.cc
@@ -31,7 +31,7 @@ void PageNumber::operator=(const PageNumber& other) {
void PageNumber::Init(const PrintSettings& settings, int document_page_count) {
DCHECK(document_page_count);
- ranges_ = settings.ranges.empty() ? NULL : &settings.ranges;
+ ranges_ = settings.ranges().empty() ? NULL : &settings.ranges();
document_page_count_ = document_page_count;
if (ranges_) {
page_range_index_ = 0;

Powered by Google App Engine
This is Rietveld 408576698