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

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

Issue 2039803002: Unregister Images, Plugins and Mouselock content settings on android (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@only_register_platform_used_contentsettingtypes
Patch Set: address review comments, minor change Created 4 years, 6 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/mock_settings_observer.h" 5 #include "chrome/browser/content_settings/mock_settings_observer.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "components/content_settings/core/browser/content_settings_details.h" 8 #include "components/content_settings/core/browser/content_settings_details.h"
9 #include "components/content_settings/core/browser/host_content_settings_map.h" 9 #include "components/content_settings/core/browser/host_content_settings_map.h"
10 #include "url/gurl.h" 10 #include "url/gurl.h"
(...skipping 15 matching lines...) Expand all
26 OnContentSettingsChanged(map_, 26 OnContentSettingsChanged(map_,
27 details.type(), 27 details.type(),
28 details.update_all_types(), 28 details.update_all_types(),
29 details.primary_pattern(), 29 details.primary_pattern(),
30 details.secondary_pattern(), 30 details.secondary_pattern(),
31 details.update_all()); 31 details.update_all());
32 // This checks that calling a Get function from an observer doesn't 32 // This checks that calling a Get function from an observer doesn't
33 // deadlock. 33 // deadlock.
34 GURL url("http://random-hostname.com/"); 34 GURL url("http://random-hostname.com/");
35 map_->GetContentSetting( 35 map_->GetContentSetting(
36 url, url, CONTENT_SETTINGS_TYPE_IMAGES, std::string()); 36 url, url, CONTENT_SETTINGS_TYPE_COOKIES, std::string());
37 } 37 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698