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

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

Issue 545413002: Detach the dependency from host_content_settings_map to extension. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove ProviderType Created 6 years, 3 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/content_settings_mock_provider.h" 5 #include "chrome/browser/content_settings/content_settings_mock_provider.h"
6 6
7 namespace content_settings { 7 namespace content_settings {
8 8
9 MockProvider::MockProvider() 9 MockProvider::MockProvider()
10 : read_only_(false) {} 10 : read_only_(false) {}
(...skipping 25 matching lines...) Expand all
36 content_type, 36 content_type,
37 resource_identifier, 37 resource_identifier,
38 value); 38 value);
39 return true; 39 return true;
40 } 40 }
41 41
42 void MockProvider::ShutdownOnUIThread() { 42 void MockProvider::ShutdownOnUIThread() {
43 RemoveAllObservers(); 43 RemoveAllObservers();
44 } 44 }
45 45
46 std::string MockProvider::GetProviderName() const {
47 return "mock";
48 }
49
50 SettingSource MockProvider::GetSettingSource() const {
51 return SETTING_SOURCE_NONE;
52 }
53
46 } // namespace content_settings 54 } // namespace content_settings
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698