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

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

Issue 10375021: Move Extension into extensions namespace (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Take 6 Created 8 years, 7 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD) 126 #if defined(OS_CHROMEOS) && defined(USE_VIRTUAL_KEYBOARD)
127 #include "chrome/browser/extensions/extension_input_ui_api.h" 127 #include "chrome/browser/extensions/extension_input_ui_api.h"
128 #endif 128 #endif
129 129
130 using base::Time; 130 using base::Time;
131 using content::BrowserContext; 131 using content::BrowserContext;
132 using content::BrowserThread; 132 using content::BrowserThread;
133 using content::DevToolsAgentHost; 133 using content::DevToolsAgentHost;
134 using content::DevToolsAgentHostRegistry; 134 using content::DevToolsAgentHostRegistry;
135 using content::PluginService; 135 using content::PluginService;
136 using extensions::Extension;
137 using extensions::ExtensionIdSet;
138 using extensions::ExtensionInfo;
139 using extensions::UnloadedExtensionInfo;
136 140
137 namespace errors = extension_manifest_errors; 141 namespace errors = extension_manifest_errors;
138 142
139 namespace { 143 namespace {
140 144
141 #if defined(OS_LINUX) 145 #if defined(OS_LINUX)
142 static const int kOmniboxIconPaddingLeft = 2; 146 static const int kOmniboxIconPaddingLeft = 2;
143 static const int kOmniboxIconPaddingRight = 2; 147 static const int kOmniboxIconPaddingRight = 2;
144 #elif defined(OS_MACOSX) 148 #elif defined(OS_MACOSX)
145 static const int kOmniboxIconPaddingLeft = 0; 149 static const int kOmniboxIconPaddingLeft = 0;
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after
2576 // To coexist with certain unit tests that don't have an IO thread message 2580 // To coexist with certain unit tests that don't have an IO thread message
2577 // loop available at ExtensionService shutdown, we lazy-initialize this 2581 // loop available at ExtensionService shutdown, we lazy-initialize this
2578 // object so that those cases neither create nor destroy an 2582 // object so that those cases neither create nor destroy an
2579 // APIResourceController. 2583 // APIResourceController.
2580 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO)); 2584 CHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
2581 if (!api_resource_controller_) { 2585 if (!api_resource_controller_) {
2582 api_resource_controller_ = new extensions::APIResourceController(); 2586 api_resource_controller_ = new extensions::APIResourceController();
2583 } 2587 }
2584 return api_resource_controller_; 2588 return api_resource_controller_;
2585 } 2589 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.h ('k') | chrome/browser/extensions/extension_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698