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

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

Issue 10826156: Plumb invalidations from Tango to the extensions code for the Push Messaging API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix gmock and maybe Android build Created 8 years, 4 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 (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_system.h" 5 #include "chrome/browser/extensions/extension_system.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "base/string_tokenizer.h" 10 #include "base/string_tokenizer.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 if (!command_line->HasSwitch(switches::kImport) && 189 if (!command_line->HasSwitch(switches::kImport) &&
190 !command_line->HasSwitch(switches::kImportFromFile)) { 190 !command_line->HasSwitch(switches::kImportFromFile)) {
191 if (g_browser_process->profile_manager()->will_import()) { 191 if (g_browser_process->profile_manager()->will_import()) {
192 extension_service_->InitEventRoutersAfterImport(); 192 extension_service_->InitEventRoutersAfterImport();
193 } else { 193 } else {
194 extension_service_->InitEventRouters(); 194 extension_service_->InitEventRouters();
195 } 195 }
196 } 196 }
197 } 197 }
198 198
199 void ExtensionSystemImpl::Shared::Shutdown() {
200 if (extension_service_.get())
201 extension_service_->Shutdown();
202 }
203
199 StateStore* ExtensionSystemImpl::Shared::state_store() { 204 StateStore* ExtensionSystemImpl::Shared::state_store() {
200 return state_store_.get(); 205 return state_store_.get();
201 } 206 }
202 207
203 ExtensionService* ExtensionSystemImpl::Shared::extension_service() { 208 ExtensionService* ExtensionSystemImpl::Shared::extension_service() {
204 return extension_service_.get(); 209 return extension_service_.get();
205 } 210 }
206 211
207 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { 212 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() {
208 return management_policy_.get(); 213 return management_policy_.get();
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 381 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
377 const std::string& extension_id, 382 const std::string& extension_id,
378 const extension_misc::UnloadedExtensionReason reason) { 383 const extension_misc::UnloadedExtensionReason reason) {
379 BrowserThread::PostTask( 384 BrowserThread::PostTask(
380 BrowserThread::IO, FROM_HERE, 385 BrowserThread::IO, FROM_HERE,
381 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 386 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
382 extension_id, reason)); 387 extension_id, reason));
383 } 388 }
384 389
385 } // namespace extensions 390 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698