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

Side by Side Diff: chrome/browser/content_settings/content_settings_details.cc

Issue 440423003: Clean content_settings_pattern_parser.* from unnecessary dependencies. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Removed the clients Created 6 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/browser/content_settings/content_settings_details.h" 5 #include "chrome/browser/content_settings/content_settings_details.h"
6 6
7 #include "extensions/common/constants.h"
8
7 ContentSettingsDetails::ContentSettingsDetails( 9 ContentSettingsDetails::ContentSettingsDetails(
8 const ContentSettingsPattern& primary_pattern, 10 const ContentSettingsPattern& primary_pattern,
9 const ContentSettingsPattern& secondary_pattern, 11 const ContentSettingsPattern& secondary_pattern,
10 ContentSettingsType type, 12 ContentSettingsType type,
11 const std::string& resource_identifier) 13 const std::string& resource_identifier)
12 : primary_pattern_(primary_pattern), 14 : primary_pattern_(primary_pattern),
13 secondary_pattern_(secondary_pattern), 15 secondary_pattern_(secondary_pattern),
14 type_(type), 16 type_(type),
15 resource_identifier_(resource_identifier) { 17 resource_identifier_(resource_identifier) {
16 } 18 }
19
20 bool ContentSettingsDetails::update_all() const {
21 return primary_pattern_.ToString(extensions::kExtensionScheme).empty() &&
22 secondary_pattern_.ToString(extensions::kExtensionScheme).empty();
23 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698