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

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

Powered by Google App Engine
This is Rietveld 408576698