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

Side by Side Diff: chrome/browser/printing/page_range.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/printing/page_range.h" 5 #include "chrome/browser/printing/page_range.h"
6 6
7 #include "chrome/common/stl_util-inl.h" 7 #include "base/stl_util-inl.h"
8 8
9 namespace printing { 9 namespace printing {
10 10
11 std::vector<int> PageRange::GetPages(const PageRanges& ranges) { 11 std::vector<int> PageRange::GetPages(const PageRanges& ranges) {
12 std::set<int> pages; 12 std::set<int> pages;
13 for (unsigned i = 0; i < ranges.size(); ++i) { 13 for (unsigned i = 0; i < ranges.size(); ++i) {
14 const PageRange& range = ranges[i]; 14 const PageRange& range = ranges[i];
15 // Ranges are inclusive. 15 // Ranges are inclusive.
16 for (int i = range.from; i <= range.to; ++i) { 16 for (int i = range.from; i <= range.to; ++i) {
17 pages.insert(i); 17 pages.insert(i);
18 } 18 }
19 } 19 }
20 return SetToVector(pages); 20 return SetToVector(pages);
21 } 21 }
22 22
23 } // namespace printing 23 } // namespace printing
OLDNEW
« no previous file with comments | « chrome/browser/password_manager/password_manager.cc ('k') | chrome/browser/renderer_host/resource_dispatcher_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698