| OLD | NEW |
| 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 "components/content_settings/core/browser/content_settings_pref_provide
r.h" | 5 #include "components/content_settings/core/browser/content_settings_pref_provide
r.h" |
| 6 | 6 |
| 7 #include "base/auto_reset.h" | 7 #include "base/auto_reset.h" |
| 8 #include "base/command_line.h" | 8 #include "base/command_line.h" |
| 9 #include "base/macros.h" |
| 9 #include "base/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
| 10 #include "base/message_loop/message_loop.h" | 11 #include "base/message_loop/message_loop.h" |
| 11 #include "base/prefs/default_pref_store.h" | 12 #include "base/prefs/default_pref_store.h" |
| 12 #include "base/prefs/overlay_user_pref_store.h" | 13 #include "base/prefs/overlay_user_pref_store.h" |
| 13 #include "base/prefs/pref_change_registrar.h" | 14 #include "base/prefs/pref_change_registrar.h" |
| 14 #include "base/prefs/pref_service.h" | 15 #include "base/prefs/pref_service.h" |
| 15 #include "base/prefs/scoped_user_pref_update.h" | 16 #include "base/prefs/scoped_user_pref_update.h" |
| 16 #include "base/prefs/testing_pref_store.h" | 17 #include "base/prefs/testing_pref_store.h" |
| 17 #include "base/test/simple_test_clock.h" | 18 #include "base/test/simple_test_clock.h" |
| 18 #include "base/threading/platform_thread.h" | 19 #include "base/threading/platform_thread.h" |
| (...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 536 for (const char* pref : nonempty_prefs) { | 537 for (const char* pref : nonempty_prefs) { |
| 537 DictionaryPrefUpdate update(&prefs, pref); | 538 DictionaryPrefUpdate update(&prefs, pref); |
| 538 const base::DictionaryValue* dictionary = update.Get(); | 539 const base::DictionaryValue* dictionary = update.Get(); |
| 539 EXPECT_EQ(1u, dictionary->size()); | 540 EXPECT_EQ(1u, dictionary->size()); |
| 540 } | 541 } |
| 541 | 542 |
| 542 provider.ShutdownOnUIThread(); | 543 provider.ShutdownOnUIThread(); |
| 543 } | 544 } |
| 544 | 545 |
| 545 } // namespace content_settings | 546 } // namespace content_settings |
| OLD | NEW |