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

Side by Side Diff: chrome/common/extensions/extension_set.cc

Issue 7552028: Injected CSS localization fix (see bug no.) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Inserted whitespace. Created 9 years, 4 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/common/extensions/extension_set.h" 5 #include "chrome/common/extensions/extension_set.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/common/url_constants.h" 8 #include "chrome/common/url_constants.h"
9 9
10 ExtensionSet::ExtensionSet() { 10 ExtensionSet::ExtensionSet() {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 72
73 ExtensionMap::const_iterator i = extensions_.begin(); 73 ExtensionMap::const_iterator i = extensions_.begin();
74 for (; i != extensions_.end(); ++i) { 74 for (; i != extensions_.end(); ++i) {
75 if (i->second->location() == Extension::COMPONENT && 75 if (i->second->location() == Extension::COMPONENT &&
76 i->second->web_extent().MatchesURL(url)) 76 i->second->web_extent().MatchesURL(url))
77 return true; 77 return true;
78 } 78 }
79 79
80 return false; 80 return false;
81 } 81 }
82
83 void ExtensionSet::GetExtensionsPathAndDefaultLocale(
84 std::map<std::string, std::pair<FilePath, std::string> >& info) const {
85 info.clear();
86 ExtensionMap::const_iterator i = extensions_.begin();
87 for (; i != extensions_.end(); ++i) {
88 info[i->first] = std::make_pair(i->second->path(),
89 i->second->default_locale());
90 }
91 }
OLDNEW
« chrome/common/extensions/extension_set.h ('K') | « chrome/common/extensions/extension_set.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698