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

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

Issue 8542001: Insert default stylesheet for platform apps. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/extension_service.h" 5 #include "chrome/browser/extensions/extension_service.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <set> 8 #include <set>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 2307 matching lines...) Expand 10 before | Expand all | Expand 10 after
2318 std::vector<std::string> function_names; 2318 std::vector<std::string> function_names;
2319 ExtensionFunctionDispatcher::GetAllFunctionNames(&function_names); 2319 ExtensionFunctionDispatcher::GetAllFunctionNames(&function_names);
2320 process->Send(new ExtensionMsg_SetFunctionNames(function_names)); 2320 process->Send(new ExtensionMsg_SetFunctionNames(function_names));
2321 2321
2322 // Scripting whitelist. This is modified by tests and must be communicated 2322 // Scripting whitelist. This is modified by tests and must be communicated
2323 // to renderers. 2323 // to renderers.
2324 process->Send(new ExtensionMsg_SetScriptingWhitelist( 2324 process->Send(new ExtensionMsg_SetScriptingWhitelist(
2325 *Extension::GetScriptingWhitelist())); 2325 *Extension::GetScriptingWhitelist()));
2326 2326
2327 // Loaded extensions. 2327 // Loaded extensions.
2328 process->Send(new ExtensionMsg_StartBatchLoad());
2328 for (size_t i = 0; i < extensions_.size(); ++i) { 2329 for (size_t i = 0; i < extensions_.size(); ++i) {
2329 process->Send(new ExtensionMsg_Loaded( 2330 process->Send(new ExtensionMsg_Loaded(
2330 ExtensionMsg_Loaded_Params(extensions_[i]))); 2331 ExtensionMsg_Loaded_Params(extensions_[i])));
2331 } 2332 }
2333 process->Send(new ExtensionMsg_EndBatchLoad());
2332 break; 2334 break;
2333 } 2335 }
2334 case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: { 2336 case content::NOTIFICATION_RENDERER_PROCESS_TERMINATED: {
2335 RenderProcessHost* process = 2337 RenderProcessHost* process =
2336 content::Source<RenderProcessHost>(source).ptr(); 2338 content::Source<RenderProcessHost>(source).ptr();
2337 Profile* host_profile = 2339 Profile* host_profile =
2338 Profile::FromBrowserContext(process->browser_context()); 2340 Profile::FromBrowserContext(process->browser_context());
2339 if (!profile_->IsSameProfile(host_profile->GetOriginalProfile())) 2341 if (!profile_->IsSameProfile(host_profile->GetOriginalProfile()))
2340 break; 2342 break;
2341 2343
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
2491 2493
2492 ExtensionService::NaClModuleInfoList::iterator 2494 ExtensionService::NaClModuleInfoList::iterator
2493 ExtensionService::FindNaClModule(const GURL& url) { 2495 ExtensionService::FindNaClModule(const GURL& url) {
2494 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin(); 2496 for (NaClModuleInfoList::iterator iter = nacl_module_list_.begin();
2495 iter != nacl_module_list_.end(); ++iter) { 2497 iter != nacl_module_list_.end(); ++iter) {
2496 if (iter->url == url) 2498 if (iter->url == url)
2497 return iter; 2499 return iter;
2498 } 2500 }
2499 return nacl_module_list_.end(); 2501 return nacl_module_list_.end();
2500 } 2502 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698