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

Side by Side Diff: chrome/browser/permissions/chooser_context_base.cc

Issue 2054623002: Refactor HostContentSettingsMap::SetWebsiteSettingDefaultScope to take a std::unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressing reviewer comments 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 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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/engagement/site_engagement_score.cc ('k') | chrome/browser/ssl/chrome_ssl_host_state_delegate.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698