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

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

Issue 10626007: Move ExtensionSystem into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Master merge; moved class declaration Created 8 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
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/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 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
319 return true; 319 return true;
320 } 320 }
321 321
322 ExtensionService::ExtensionService(Profile* profile, 322 ExtensionService::ExtensionService(Profile* profile,
323 const CommandLine* command_line, 323 const CommandLine* command_line,
324 const FilePath& install_directory, 324 const FilePath& install_directory,
325 extensions::ExtensionPrefs* extension_prefs, 325 extensions::ExtensionPrefs* extension_prefs,
326 bool autoupdate_enabled, 326 bool autoupdate_enabled,
327 bool extensions_enabled) 327 bool extensions_enabled)
328 : profile_(profile), 328 : profile_(profile),
329 system_(ExtensionSystem::Get(profile)), 329 system_(extensions::ExtensionSystem::Get(profile)),
330 extension_prefs_(extension_prefs), 330 extension_prefs_(extension_prefs),
331 settings_frontend_(extensions::SettingsFrontend::Create(profile)), 331 settings_frontend_(extensions::SettingsFrontend::Create(profile)),
332 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)), 332 pending_extension_manager_(*ALLOW_THIS_IN_INITIALIZER_LIST(this)),
333 install_directory_(install_directory), 333 install_directory_(install_directory),
334 extensions_enabled_(extensions_enabled), 334 extensions_enabled_(extensions_enabled),
335 show_extensions_prompts_(true), 335 show_extensions_prompts_(true),
336 ready_(false), 336 ready_(false),
337 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)), 337 toolbar_model_(ALLOW_THIS_IN_INITIALIZER_LIST(this)),
338 menu_manager_(profile), 338 menu_manager_(profile),
339 app_notification_manager_(new AppNotificationManager(profile)), 339 app_notification_manager_(new AppNotificationManager(profile)),
(...skipping 2222 matching lines...) Expand 10 before | Expand all | Expand 10 after
2562 2562
2563 // To coexist with certain unit tests that don't have a work-thread message 2563 // To coexist with certain unit tests that don't have a work-thread message
2564 // loop available at ExtensionService shutdown, we lazy-initialize this 2564 // loop available at ExtensionService shutdown, we lazy-initialize this
2565 // object so that those cases neither create nor destroy an 2565 // object so that those cases neither create nor destroy an
2566 // APIResourceController. 2566 // APIResourceController.
2567 if (!api_resource_controller_.get()) { 2567 if (!api_resource_controller_.get()) {
2568 api_resource_controller_.reset(new extensions::APIResourceController()); 2568 api_resource_controller_.reset(new extensions::APIResourceController());
2569 } 2569 }
2570 return api_resource_controller_.get(); 2570 return api_resource_controller_.get();
2571 } 2571 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/extension_service_unittest.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698