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

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

Issue 10584042: Bring up a content settings icon for ungestured registerProtocolHandler call. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix merge 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
41 }; 42 };
42 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES, 43 COMPILE_ASSERT(arraysize(kPrefToManageType) == CONTENT_SETTINGS_NUM_TYPES,
43 managed_content_settings_pref_names_array_size_incorrect); 44 managed_content_settings_pref_names_array_size_incorrect);
44 45
45 struct PrefsForManagedContentSettingsMapEntry { 46 struct PrefsForManagedContentSettingsMapEntry {
46 const char* pref_name; 47 const char* pref_name;
47 ContentSettingsType content_type; 48 ContentSettingsType content_type;
48 ContentSetting setting; 49 ContentSetting setting;
49 }; 50 };
50 51
(...skipping 414 matching lines...) Expand 10 before | Expand all | Expand 10 after
465 NOTREACHED() << "Unexpected notification"; 466 NOTREACHED() << "Unexpected notification";
466 return; 467 return;
467 } 468 }
468 NotifyObservers(ContentSettingsPattern(), 469 NotifyObservers(ContentSettingsPattern(),
469 ContentSettingsPattern(), 470 ContentSettingsPattern(),
470 CONTENT_SETTINGS_TYPE_DEFAULT, 471 CONTENT_SETTINGS_TYPE_DEFAULT,
471 std::string()); 472 std::string());
472 } 473 }
473 474
474 } // namespace content_settings 475 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698