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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_store.cc

Issue 106433007: Update some uses of Value in chrome/browser to use the base:: namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix Created 7 years 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) 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 "chrome/browser/extensions/api/content_settings/content_settings_store. h" 5 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/debug/alias.h" 9 #include "base/debug/alias.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
279 } 279 }
280 return settings; 280 return settings;
281 } 281 }
282 282
283 void ContentSettingsStore::SetExtensionContentSettingFromList( 283 void ContentSettingsStore::SetExtensionContentSettingFromList(
284 const std::string& extension_id, 284 const std::string& extension_id,
285 const base::ListValue* list, 285 const base::ListValue* list,
286 ExtensionPrefsScope scope) { 286 ExtensionPrefsScope scope) {
287 for (base::ListValue::const_iterator it = list->begin(); 287 for (base::ListValue::const_iterator it = list->begin();
288 it != list->end(); ++it) { 288 it != list->end(); ++it) {
289 if ((*it)->GetType() != Value::TYPE_DICTIONARY) { 289 if ((*it)->GetType() != base::Value::TYPE_DICTIONARY) {
290 NOTREACHED(); 290 NOTREACHED();
291 continue; 291 continue;
292 } 292 }
293 base::DictionaryValue* dict = static_cast<base::DictionaryValue*>(*it); 293 base::DictionaryValue* dict = static_cast<base::DictionaryValue*>(*it);
294 std::string primary_pattern_str; 294 std::string primary_pattern_str;
295 dict->GetString(keys::kPrimaryPatternKey, &primary_pattern_str); 295 dict->GetString(keys::kPrimaryPatternKey, &primary_pattern_str);
296 ContentSettingsPattern primary_pattern = 296 ContentSettingsPattern primary_pattern =
297 ContentSettingsPattern::FromString(primary_pattern_str); 297 ContentSettingsPattern::FromString(primary_pattern_str);
298 DCHECK(primary_pattern.IsValid()); 298 DCHECK(primary_pattern.IsValid());
299 299
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
368 ContentSettingsStore::FindEntry(const std::string& ext_id) const { 368 ContentSettingsStore::FindEntry(const std::string& ext_id) const {
369 ExtensionEntryMap::const_iterator i; 369 ExtensionEntryMap::const_iterator i;
370 for (i = entries_.begin(); i != entries_.end(); ++i) { 370 for (i = entries_.begin(); i != entries_.end(); ++i) {
371 if (i->second->id == ext_id) 371 if (i->second->id == ext_id)
372 return i; 372 return i;
373 } 373 }
374 return entries_.end(); 374 return entries_.end();
375 } 375 }
376 376
377 } // namespace extensions 377 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/capture_web_contents_function.cc ('k') | chrome/browser/extensions/api/cookies/cookies_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698