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

Side by Side Diff: chrome/browser/extensions/api/content_settings/content_settings_custom_extension_provider.cc

Issue 1767423002: [Do not commit] Track revocations in content_settings::Observer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/extensions/api/content_settings/content_settings_custom _extension_provider.h" 5 #include "chrome/browser/extensions/api/content_settings/content_settings_custom _extension_provider.h"
6 6
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h" 8 #include "chrome/browser/extensions/api/content_settings/content_settings_store. h"
9 #include "components/content_settings/core/browser/content_settings_rule.h" 9 #include "components/content_settings/core/browser/content_settings_rule.h"
10 #include "components/content_settings/core/browser/content_settings_utils.h" 10 #include "components/content_settings/core/browser/content_settings_utils.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 47
48 void CustomExtensionProvider::OnContentSettingChanged( 48 void CustomExtensionProvider::OnContentSettingChanged(
49 const std::string& extension_id, 49 const std::string& extension_id,
50 bool incognito) { 50 bool incognito) {
51 if (incognito_ != incognito) 51 if (incognito_ != incognito)
52 return; 52 return;
53 // TODO(markusheintz): Be more concise. 53 // TODO(markusheintz): Be more concise.
54 NotifyObservers(ContentSettingsPattern(), 54 NotifyObservers(ContentSettingsPattern(),
55 ContentSettingsPattern(), 55 ContentSettingsPattern(),
56 CONTENT_SETTINGS_TYPE_DEFAULT, 56 CONTENT_SETTINGS_TYPE_DEFAULT,
57 CONTENT_SETTING_DEFAULT,
57 std::string()); 58 std::string());
58 } 59 }
59 60
60 } // namespace content_settings 61 } // namespace content_settings
OLDNEW
« no previous file with comments | « chrome/browser/content_settings/tab_specific_content_settings.cc ('k') | chrome/browser/permissions/permission_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698