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

Side by Side Diff: extensions/common/permissions/api_permission_set.cc

Issue 22243002: GTTF: Enable glibcxx debug mode for Debug builds by default. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/permissions/api_permission_set.h" 5 #include "extensions/common/permissions/api_permission_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/stl_util.h" 8 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 9 #include "base/strings/string_number_conversions.h"
10 #include "base/values.h" 10 #include "base/values.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 APIPermissionSet::const_iterator::const_iterator( 122 APIPermissionSet::const_iterator::const_iterator(
123 const APIPermissionMap::const_iterator& it) 123 const APIPermissionMap::const_iterator& it)
124 : it_(it) { 124 : it_(it) {
125 } 125 }
126 126
127 APIPermissionSet::const_iterator::const_iterator( 127 APIPermissionSet::const_iterator::const_iterator(
128 const const_iterator& ids_it) 128 const const_iterator& ids_it)
129 : it_(ids_it.it_) { 129 : it_(ids_it.it_) {
130 } 130 }
131 131
132 APIPermissionSet::const_iterator::~const_iterator() {
133 }
134
132 APIPermissionSet& APIPermissionSet::operator=(const APIPermissionSet& rhs) { 135 APIPermissionSet& APIPermissionSet::operator=(const APIPermissionSet& rhs) {
133 const_iterator it = rhs.begin(); 136 const_iterator it = rhs.begin();
134 const const_iterator end = rhs.end(); 137 const const_iterator end = rhs.end();
135 while (it != end) { 138 while (it != end) {
136 insert(it->Clone()); 139 insert(it->Clone());
137 ++it; 140 ++it;
138 } 141 }
139 return *this; 142 return *this;
140 } 143 }
141 144
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
334 // The fileSystem.write and fileSystem.directory permissions imply 337 // The fileSystem.write and fileSystem.directory permissions imply
335 // fileSystem.writeDirectory. 338 // fileSystem.writeDirectory.
336 // TODO(sammc): Remove this. See http://crbug.com/284849. 339 // TODO(sammc): Remove this. See http://crbug.com/284849.
337 if (ContainsKey(map_, APIPermission::kFileSystemWrite) && 340 if (ContainsKey(map_, APIPermission::kFileSystemWrite) &&
338 ContainsKey(map_, APIPermission::kFileSystemDirectory)) { 341 ContainsKey(map_, APIPermission::kFileSystemDirectory)) {
339 insert(APIPermission::kFileSystemWriteDirectory); 342 insert(APIPermission::kFileSystemWriteDirectory);
340 } 343 }
341 } 344 }
342 345
343 } // namespace extensions 346 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698