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

Unified Diff: chrome/browser/ui/cocoa/content_exceptions_window_controller.mm

Issue 5574001: Move ContentSettingsDetails and Pattern out of HostContentSettingsMap as separate classes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/browser/content_settings
Patch Set: updates Created 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/content_exceptions_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/content_exceptions_window_controller.mm b/chrome/browser/ui/cocoa/content_exceptions_window_controller.mm
index 1a6aa74b12a06009f2fbb0ff2836d83fc1a8da1c..e9a426f6e7e737de4d7c4e184889b725d61beb43 100644
--- a/chrome/browser/ui/cocoa/content_exceptions_window_controller.mm
+++ b/chrome/browser/ui/cocoa/content_exceptions_window_controller.mm
@@ -49,7 +49,7 @@
forString:(NSString*)string
errorDescription:(NSString**)error {
if ([string length]) {
- if (HostContentSettingsMap::Pattern(
+ if (ContentSettingsPattern(
base::SysNSStringToUTF8(string)).IsValid()) {
*object = string;
return YES;
@@ -295,7 +295,7 @@ static ContentExceptionsWindowController*
return;
}
newException_.reset(new HostContentSettingsMap::PatternSettingPair);
- newException_->first = HostContentSettingsMap::Pattern(
+ newException_->first = ContentSettingsPattern(
l10n_util::GetStringUTF8(IDS_EXCEPTIONS_SAMPLE_PATTERN));
newException_->second = CONTENT_SETTING_BLOCK;
[tableView_ reloadData];
@@ -418,8 +418,7 @@ static ContentExceptionsWindowController*
// Modify it.
NSString* identifier = [tableColumn identifier];
if ([identifier isEqualToString:@"pattern"]) {
- entry.first = HostContentSettingsMap::Pattern(
- base::SysNSStringToUTF8(object));
+ entry.first = ContentSettingsPattern(base::SysNSStringToUTF8(object));
}
if ([identifier isEqualToString:@"action"]) {
int index = [object intValue];

Powered by Google App Engine
This is Rietveld 408576698