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

Side by Side Diff: chrome/renderer/chrome_render_thread_observer.cc

Issue 2628323004: Fix a copy/pasto. (Closed)
Patch Set: Created 3 years, 11 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
« no previous file with comments | « chrome/renderer/chrome_render_thread_observer.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "chrome/renderer/chrome_render_thread_observer.h" 5 #include "chrome/renderer/chrome_render_thread_observer.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <memory> 10 #include <memory>
(...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 native_scheme); 272 native_scheme);
273 273
274 thread->GetInterfaceRegistry()->AddInterface( 274 thread->GetInterfaceRegistry()->AddInterface(
275 visited_link_slave_->GetBindCallback()); 275 visited_link_slave_->GetBindCallback());
276 } 276 }
277 277
278 ChromeRenderThreadObserver::~ChromeRenderThreadObserver() {} 278 ChromeRenderThreadObserver::~ChromeRenderThreadObserver() {}
279 279
280 void ChromeRenderThreadObserver::RegisterMojoInterfaces( 280 void ChromeRenderThreadObserver::RegisterMojoInterfaces(
281 content::AssociatedInterfaceRegistry* associated_interfaces) { 281 content::AssociatedInterfaceRegistry* associated_interfaces) {
282 associated_interfaces->AddInterface( 282 associated_interfaces->AddInterface(base::Bind(
283 base::Bind(&ChromeRenderThreadObserver::OnRendererInterfaceRequest, 283 &ChromeRenderThreadObserver::OnRendererConfigurationAssociatedRequest,
284 base::Unretained(this))); 284 base::Unretained(this)));
285 } 285 }
286 286
287 void ChromeRenderThreadObserver::UnregisterMojoInterfaces( 287 void ChromeRenderThreadObserver::UnregisterMojoInterfaces(
288 content::AssociatedInterfaceRegistry* associated_interfaces) { 288 content::AssociatedInterfaceRegistry* associated_interfaces) {
289 associated_interfaces->RemoveInterface( 289 associated_interfaces->RemoveInterface(
290 chrome::mojom::RendererConfiguration::Name_); 290 chrome::mojom::RendererConfiguration::Name_);
291 } 291 }
292 292
293 bool ChromeRenderThreadObserver::OnControlMessageReceived( 293 bool ChromeRenderThreadObserver::OnControlMessageReceived(
294 const IPC::Message& message) { 294 const IPC::Message& message) {
(...skipping 29 matching lines...) Expand all
324 void ChromeRenderThreadObserver::SetInitialConfiguration( 324 void ChromeRenderThreadObserver::SetInitialConfiguration(
325 bool is_incognito_process) { 325 bool is_incognito_process) {
326 is_incognito_process_ = is_incognito_process; 326 is_incognito_process_ = is_incognito_process;
327 } 327 }
328 328
329 void ChromeRenderThreadObserver::SetContentSettingRules( 329 void ChromeRenderThreadObserver::SetContentSettingRules(
330 const RendererContentSettingRules& rules) { 330 const RendererContentSettingRules& rules) {
331 content_setting_rules_ = rules; 331 content_setting_rules_ = rules;
332 } 332 }
333 333
334 void ChromeRenderThreadObserver::OnRendererInterfaceRequest( 334 void ChromeRenderThreadObserver::OnRendererConfigurationAssociatedRequest(
335 chrome::mojom::RendererConfigurationAssociatedRequest request) { 335 chrome::mojom::RendererConfigurationAssociatedRequest request) {
336 DCHECK(!renderer_configuration_binding_.is_bound()); 336 DCHECK(!renderer_configuration_binding_.is_bound());
337 renderer_configuration_binding_.Bind(std::move(request)); 337 renderer_configuration_binding_.Bind(std::move(request));
338 } 338 }
339 339
340 void ChromeRenderThreadObserver::OnSetFieldTrialGroup( 340 void ChromeRenderThreadObserver::OnSetFieldTrialGroup(
341 const std::string& trial_name, 341 const std::string& trial_name,
342 const std::string& group_name) { 342 const std::string& group_name) {
343 field_trial_syncer_.OnSetFieldTrialGroup(trial_name, group_name); 343 field_trial_syncer_.OnSetFieldTrialGroup(trial_name, group_name);
344 } 344 }
345 345
346 const RendererContentSettingRules* 346 const RendererContentSettingRules*
347 ChromeRenderThreadObserver::content_setting_rules() const { 347 ChromeRenderThreadObserver::content_setting_rules() const {
348 return &content_setting_rules_; 348 return &content_setting_rules_;
349 } 349 }
OLDNEW
« no previous file with comments | « chrome/renderer/chrome_render_thread_observer.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698