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

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: snapshot 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 extension_service_->Shutdown();
201 }
202
199 StateStore* ExtensionSystemImpl::Shared::state_store() { 203 StateStore* ExtensionSystemImpl::Shared::state_store() {
200 return state_store_.get(); 204 return state_store_.get();
201 } 205 }
202 206
203 ExtensionService* ExtensionSystemImpl::Shared::extension_service() { 207 ExtensionService* ExtensionSystemImpl::Shared::extension_service() {
204 return extension_service_.get(); 208 return extension_service_.get();
205 } 209 }
206 210
207 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() { 211 ManagementPolicy* ExtensionSystemImpl::Shared::management_policy() {
208 return management_policy_.get(); 212 return management_policy_.get();
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
376 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 380 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
377 const std::string& extension_id, 381 const std::string& extension_id,
378 const extension_misc::UnloadedExtensionReason reason) { 382 const extension_misc::UnloadedExtensionReason reason) {
379 BrowserThread::PostTask( 383 BrowserThread::PostTask(
380 BrowserThread::IO, FROM_HERE, 384 BrowserThread::IO, FROM_HERE,
381 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 385 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
382 extension_id, reason)); 386 extension_id, reason));
383 } 387 }
384 388
385 } // namespace extensions 389 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698