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

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 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 173 matching lines...) Expand 10 before | Expand all | Expand 10 after
184 if (!command_line->HasSwitch(switches::kImport) && 184 if (!command_line->HasSwitch(switches::kImport) &&
185 !command_line->HasSwitch(switches::kImportFromFile)) { 185 !command_line->HasSwitch(switches::kImportFromFile)) {
186 if (g_browser_process->profile_manager()->will_import()) { 186 if (g_browser_process->profile_manager()->will_import()) {
187 extension_service_->InitEventRoutersAfterImport(); 187 extension_service_->InitEventRoutersAfterImport();
188 } else { 188 } else {
189 extension_service_->InitEventRouters(); 189 extension_service_->InitEventRouters();
190 } 190 }
191 } 191 }
192 } 192 }
193 193
194 void ExtensionSystemImpl::Shared::Shutdown() {
195 if (extension_service_.get())
196 extension_service_->Shutdown();
197 }
198
194 StateStore* ExtensionSystemImpl::Shared::state_store() { 199 StateStore* ExtensionSystemImpl::Shared::state_store() {
195 return state_store_.get(); 200 return state_store_.get();
196 } 201 }
197 202
198 ExtensionService* ExtensionSystemImpl::Shared::extension_service() { 203 ExtensionService* ExtensionSystemImpl::Shared::extension_service() {
199 return extension_service_.get(); 204 return extension_service_.get();
200 } 205 }
201 206
202 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { 207 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() {
203 return management_policy_.get(); 208 return management_policy_.get();
(...skipping 171 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 380 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
376 const std::string& extension_id, 381 const std::string& extension_id,
377 const extension_misc::UnloadedExtensionReason reason) { 382 const extension_misc::UnloadedExtensionReason reason) {
378 BrowserThread::PostTask( 383 BrowserThread::PostTask(
379 BrowserThread::IO, FROM_HERE, 384 BrowserThread::IO, FROM_HERE,
380 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 385 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
381 extension_id, reason)); 386 extension_id, reason));
382 } 387 }
383 388
384 } // namespace extensions 389 } // namespace extensions
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_system.h ('k') | chrome/browser/sync/invalidation_frontend.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698