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

Side by Side Diff: chrome/browser/extensions/chrome_content_browser_client_extensions_part.cc

Issue 964553002: Remove support for special "sign in process" state. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@ocl3
Patch Set: rebased Created 5 years, 9 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/extensions/chrome_content_browser_client_extensions_par t.h" 5 #include "chrome/browser/extensions/chrome_content_browser_client_extensions_par t.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 366
367 if (!WebAccessibleResourcesInfo::IsResourceWebAccessible( 367 if (!WebAccessibleResourcesInfo::IsResourceWebAccessible(
368 extension, to_url.path())) { 368 extension, to_url.path())) {
369 *result = false; 369 *result = false;
370 return true; 370 return true;
371 } 371 }
372 } 372 }
373 return false; 373 return false;
374 } 374 }
375 375
376 // static
377 void ChromeContentBrowserClientExtensionsPart::SetSigninProcess(
378 content::SiteInstance* site_instance) {
379 Profile* profile =
380 Profile::FromBrowserContext(site_instance->GetBrowserContext());
381 DCHECK(profile);
382 BrowserThread::PostTask(
383 BrowserThread::IO,
384 FROM_HERE,
385 base::Bind(&InfoMap::SetSigninProcess,
386 ExtensionSystem::Get(profile)->info_map(),
387 site_instance->GetProcess()->GetID()));
388 }
389
390 void ChromeContentBrowserClientExtensionsPart::RenderProcessWillLaunch( 376 void ChromeContentBrowserClientExtensionsPart::RenderProcessWillLaunch(
391 content::RenderProcessHost* host) { 377 content::RenderProcessHost* host) {
392 int id = host->GetID(); 378 int id = host->GetID();
393 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext()); 379 Profile* profile = Profile::FromBrowserContext(host->GetBrowserContext());
394 380
395 host->AddFilter(new ChromeExtensionMessageFilter(id, profile)); 381 host->AddFilter(new ChromeExtensionMessageFilter(id, profile));
396 host->AddFilter(new ExtensionMessageFilter(id, profile)); 382 host->AddFilter(new ExtensionMessageFilter(id, profile));
397 host->AddFilter(new IOThreadExtensionMessageFilter(id, profile)); 383 host->AddFilter(new IOThreadExtensionMessageFilter(id, profile));
398 host->AddFilter(new GuestViewMessageFilter(id, profile)); 384 host->AddFilter(new GuestViewMessageFilter(id, profile));
399 extension_web_request_api_helpers::SendExtensionWebRequestStatusToHost(host); 385 extension_web_request_api_helpers::SendExtensionWebRequestStatusToHost(host);
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
521 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding); 507 command_line->AppendSwitch(::switches::kEnableWebRtcHWH264Encoding);
522 #endif 508 #endif
523 if (base::CommandLine::ForCurrentProcess()->HasSwitch( 509 if (base::CommandLine::ForCurrentProcess()->HasSwitch(
524 switches::kEnableMojoSerialService)) { 510 switches::kEnableMojoSerialService)) {
525 command_line->AppendSwitch(switches::kEnableMojoSerialService); 511 command_line->AppendSwitch(switches::kEnableMojoSerialService);
526 } 512 }
527 } 513 }
528 } 514 }
529 515
530 } // namespace extensions 516 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/browser_permissions_policy_delegate_unittest.cc ('k') | chrome/browser/policy/policy_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698