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

Side by Side Diff: chrome/browser/ui/cocoa/content_exceptions_window_controller.mm

Issue 6086003: Cleanup: Remove unneeded includes of chrome_switches.h. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #import "chrome/browser/ui/cocoa/content_exceptions_window_controller.h" 5 #import "chrome/browser/ui/cocoa/content_exceptions_window_controller.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/l10n_util_mac.h" 8 #include "app/l10n_util_mac.h"
9 #include "app/table_model_observer.h" 9 #include "app/table_model_observer.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #import "base/mac/mac_util.h" 11 #import "base/mac/mac_util.h"
12 #import "base/scoped_nsobject.h" 12 #import "base/scoped_nsobject.h"
13 #include "base/sys_string_conversions.h" 13 #include "base/sys_string_conversions.h"
14 #include "chrome/browser/content_exceptions_table_model.h" 14 #include "chrome/browser/content_exceptions_table_model.h"
15 #include "chrome/browser/content_setting_combo_model.h" 15 #include "chrome/browser/content_setting_combo_model.h"
16 #include "chrome/common/chrome_switches.h"
17 #include "chrome/common/notification_registrar.h" 16 #include "chrome/common/notification_registrar.h"
18 #include "chrome/common/notification_service.h" 17 #include "chrome/common/notification_service.h"
19 #include "grit/generated_resources.h" 18 #include "grit/generated_resources.h"
20 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h" 19 #include "third_party/GTM/AppKit/GTMUILocalizerAndLayoutTweaker.h"
21 20
22 @interface ContentExceptionsWindowController (Private) 21 @interface ContentExceptionsWindowController (Private)
23 - (id)initWithType:(ContentSettingsType)settingsType 22 - (id)initWithType:(ContentSettingsType)settingsType
24 settingsMap:(HostContentSettingsMap*)settingsMap 23 settingsMap:(HostContentSettingsMap*)settingsMap
25 otrSettingsMap:(HostContentSettingsMap*)otrSettingsMap; 24 otrSettingsMap:(HostContentSettingsMap*)otrSettingsMap;
26 - (void)updateRow:(NSInteger)row 25 - (void)updateRow:(NSInteger)row
(...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after
480 479
481 // The model caches its data, meaning we need to recreate it on every change. 480 // The model caches its data, meaning we need to recreate it on every change.
482 model_.reset(new ContentExceptionsTableModel( 481 model_.reset(new ContentExceptionsTableModel(
483 settingsMap_, otrSettingsMap_, settingsType_)); 482 settingsMap_, otrSettingsMap_, settingsType_));
484 483
485 [tableView_ reloadData]; 484 [tableView_ reloadData];
486 [self adjustEditingButtons]; 485 [self adjustEditingButtons];
487 } 486 }
488 487
489 @end 488 @end
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa.mm ('k') | chrome/browser/ui/cocoa/content_setting_bubble_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698