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

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

Issue 345693002: Extensions: Split extensions utility IPC messages into its own file. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: disable another test Created 6 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_extensions_browser_client.h" 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/version.h" 9 #include "base/version.h"
10 #include "chrome/browser/app_mode/app_mode_utils.h" 10 #include "chrome/browser/app_mode/app_mode_utils.h"
(...skipping 262 matching lines...) Expand 10 before | Expand all | Expand 10 after
273 ComponentExtensionResourceManager* 273 ComponentExtensionResourceManager*
274 ChromeExtensionsBrowserClient::GetComponentExtensionResourceManager() { 274 ChromeExtensionsBrowserClient::GetComponentExtensionResourceManager() {
275 if (!resource_manager_) 275 if (!resource_manager_)
276 resource_manager_.reset(new ChromeComponentExtensionResourceManager()); 276 resource_manager_.reset(new ChromeComponentExtensionResourceManager());
277 return resource_manager_.get(); 277 return resource_manager_.get();
278 } 278 }
279 279
280 scoped_ptr<extensions::RuntimeAPIDelegate> 280 scoped_ptr<extensions::RuntimeAPIDelegate>
281 ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate( 281 ChromeExtensionsBrowserClient::CreateRuntimeAPIDelegate(
282 content::BrowserContext* context) const { 282 content::BrowserContext* context) const {
283 #if defined(ENABLE_EXTENSIONS)
283 return scoped_ptr<extensions::RuntimeAPIDelegate>( 284 return scoped_ptr<extensions::RuntimeAPIDelegate>(
284 new ChromeRuntimeAPIDelegate(context)); 285 new ChromeRuntimeAPIDelegate(context));
286 #else
287 return scoped_ptr<extensions::RuntimeAPIDelegate>();
288 #endif
285 } 289 }
286 290
287 } // namespace extensions 291 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698