OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/permissions/chooser_context_base.h" | 5 #include "chrome/browser/permissions/chooser_context_base.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" | 10 #include "chrome/browser/content_settings/host_content_settings_map_factory.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 value.reset(new base::DictionaryValue()); | 146 value.reset(new base::DictionaryValue()); |
147 | 147 |
148 return value; | 148 return value; |
149 } | 149 } |
150 | 150 |
151 void ChooserContextBase::SetWebsiteSetting(const GURL& requesting_origin, | 151 void ChooserContextBase::SetWebsiteSetting(const GURL& requesting_origin, |
152 const GURL& embedding_origin, | 152 const GURL& embedding_origin, |
153 std::unique_ptr<base::Value> value) { | 153 std::unique_ptr<base::Value> value) { |
154 host_content_settings_map_->SetWebsiteSettingDefaultScope( | 154 host_content_settings_map_->SetWebsiteSettingDefaultScope( |
155 requesting_origin, embedding_origin, data_content_settings_type_, | 155 requesting_origin, embedding_origin, data_content_settings_type_, |
156 std::string(), value.release()); | 156 std::string(), std::move(value)); |
157 } | 157 } |
OLD | NEW |