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

Side by Side Diff: chrome/browser/content_exceptions_table_model_unittest.cc

Issue 3394012: Merge 59915 - Refcount the host content settings map from the content excepti... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/517/src/
Patch Set: Created 10 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_exceptions_table_model.h" 5 #include "chrome/browser/content_exceptions_table_model.h"
6 6
7 #include "chrome/test/testing_profile.h" 7 #include "chrome/test/testing_profile.h"
8 #include "testing/gtest/include/gtest/gtest.h" 8 #include "testing/gtest/include/gtest/gtest.h"
9 9
10 namespace { 10 namespace {
(...skipping 14 matching lines...) Expand all
25 otr_profile->set_off_the_record(true); 25 otr_profile->set_off_the_record(true);
26 ContentExceptionsTableModel model(profile.GetHostContentSettingsMap(), 26 ContentExceptionsTableModel model(profile.GetHostContentSettingsMap(),
27 otr_profile->GetHostContentSettingsMap(), 27 otr_profile->GetHostContentSettingsMap(),
28 CONTENT_SETTINGS_TYPE_COOKIES); 28 CONTENT_SETTINGS_TYPE_COOKIES);
29 delete otr_profile; 29 delete otr_profile;
30 model.AddException(HostContentSettingsMap::Pattern("example.com"), 30 model.AddException(HostContentSettingsMap::Pattern("example.com"),
31 CONTENT_SETTING_BLOCK, true); 31 CONTENT_SETTING_BLOCK, true);
32 } 32 }
33 33
34 } // namespace 34 } // namespace
OLDNEW
« no previous file with comments | « chrome/browser/content_exceptions_table_model.h ('k') | chrome/browser/host_content_settings_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698