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

Side by Side Diff: extensions/common/url_pattern_set.cc

Issue 2500573003: Some easy linked_ptr removal from extensions/common/ (Closed)
Patch Set: Created 4 years, 1 month 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
« no previous file with comments | « extensions/common/message_bundle_unittest.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "extensions/common/url_pattern_set.h" 5 #include "extensions/common/url_pattern_set.h"
6 6
7 #include <iterator> 7 #include <iterator>
8 #include <ostream> 8 #include <ostream>
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/memory/linked_ptr.h"
12 #include "base/memory/ptr_util.h" 11 #include "base/memory/ptr_util.h"
13 #include "base/stl_util.h" 12 #include "base/stl_util.h"
14 #include "base/values.h" 13 #include "base/values.h"
15 #include "extensions/common/error_utils.h" 14 #include "extensions/common/error_utils.h"
16 #include "extensions/common/url_pattern.h" 15 #include "extensions/common/url_pattern.h"
17 #include "url/gurl.h" 16 #include "url/gurl.h"
18 #include "url/origin.h" 17 #include "url/origin.h"
19 #include "url/url_constants.h" 18 #include "url/url_constants.h"
20 19
21 namespace extensions { 20 namespace extensions {
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
283 for (size_t i = 0; i < value.GetSize(); ++i) { 282 for (size_t i = 0; i < value.GetSize(); ++i) {
284 std::string item; 283 std::string item;
285 if (!value.GetString(i, &item)) 284 if (!value.GetString(i, &item))
286 return false; 285 return false;
287 patterns.push_back(item); 286 patterns.push_back(item);
288 } 287 }
289 return Populate(patterns, valid_schemes, allow_file_access, error); 288 return Populate(patterns, valid_schemes, allow_file_access, error);
290 } 289 }
291 290
292 } // namespace extensions 291 } // namespace extensions
OLDNEW
« no previous file with comments | « extensions/common/message_bundle_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698