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

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

Issue 10782038: Revert 147045 - Bring up a content settings icon for ungestured registerProtocolHandler call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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) 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/content_settings/content_settings_policy_provider.h" 5 #include "chrome/browser/content_settings/content_settings_policy_provider.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/json/json_reader.h" 10 #include "base/json/json_reader.h"
(...skipping 20 matching lines...) Expand all
31 prefs::kManagedDefaultPluginsSetting, 31 prefs::kManagedDefaultPluginsSetting,
32 prefs::kManagedDefaultPopupsSetting, 32 prefs::kManagedDefaultPopupsSetting,
33 prefs::kManagedDefaultGeolocationSetting, 33 prefs::kManagedDefaultGeolocationSetting,
34 prefs::kManagedDefaultNotificationsSetting, 34 prefs::kManagedDefaultNotificationsSetting,
35 NULL, // No policy for default value of content type intents 35 NULL, // No policy for default value of content type intents
36 NULL, // No policy for default value of content type auto-select-certificate 36 NULL, // No policy for default value of content type auto-select-certificate
37 NULL, // No policy for default value of fullscreen requests 37 NULL, // No policy for default value of fullscreen requests
38 NULL, // No policy for default value of mouse lock requests 38 NULL, // No policy for default value of mouse lock requests
39 NULL, // No policy for default value of mixed script blocking 39 NULL, // No policy for default value of mixed script blocking
40 prefs::kManagedDefaultMediaStreamSetting, 40 prefs::kManagedDefaultMediaStreamSetting,
41 NULL, // No policy for default value of protocol handlers
42 }; 41 };
43 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, 42 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES,
44 managed_content_settings_pref_names_array_size_incorrect); 43 managed_content_settings_pref_names_array_size_incorrect);
45 44
46 struct PrefsForManagedContentSettingsMapEntry { 45 struct PrefsForManagedContentSettingsMapEntry {
47 const char* pref_name; 46 const char* pref_name;
48 ContentSettingsType content_type; 47 ContentSettingsType content_type;
49 ContentSetting setting; 48 ContentSetting setting;
50 }; 49 };
51 50
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
466 NOTREACHED() << "Unexpected notification"; 465 NOTREACHED() << "Unexpected notification";
467 return; 466 return;
468 } 467 }
469 NotifyObservers(ContentSettingsPattern(), 468 NotifyObservers(ContentSettingsPattern(),
470 ContentSettingsPattern(), 469 ContentSettingsPattern(),
471 CONTENT_SETTINGS_TYPE_DEFAULT, 470 CONTENT_SETTINGS_TYPE_DEFAULT,
472 std::string()); 471 std::string());
473 } 472 }
474 473
475 } // namespace content_settings 474 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698