diff options
Diffstat (limited to 'chrome')
-rw-r--r-- | chrome/browser/cocoa/content_exceptions_window_controller.mm | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/content_exceptions_window_controller.mm b/chrome/browser/cocoa/content_exceptions_window_controller.mm index 280ba9a..25a0dd5 100644 --- a/chrome/browser/cocoa/content_exceptions_window_controller.mm +++ b/chrome/browser/cocoa/content_exceptions_window_controller.mm @@ -365,9 +365,9 @@ static ContentExceptionsWindowController* // Get model object. bool isNewRow = newException_.get() && row >= model_->RowCount(); - const HostContentSettingsMap::HostSettingPair* originalEntry = - isNewRow ? newException_.get() : &model_->entry_at(row); - HostContentSettingsMap::HostSettingPair entry = *originalEntry; + HostContentSettingsMap::HostSettingPair originalEntry = + isNewRow ? *newException_ : model_->entry_at(row); + HostContentSettingsMap::HostSettingPair entry = originalEntry; // Modify it. NSString* identifier = [tableColumn identifier]; @@ -398,7 +398,7 @@ static ContentExceptionsWindowController* return; } } - if (entry != *originalEntry || isNewRow) + if (entry != originalEntry || isNewRow) [self updateRow:row withEntry:entry]; } |