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

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

Issue 10545104: Refactor chrome.alarms interface to support absolute alarm deadlines. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rename timeToFire to time Created 8 years, 6 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 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 261 const CommandLine* command_line = CommandLine::ForCurrentProcess();
262 if (command_line->HasSwitch( 262 if (command_line->HasSwitch(
263 switches::kEnableExtensionTimelineApi)) { 263 switches::kEnableExtensionTimelineApi)) {
264 extension_devtools_manager_ = new ExtensionDevToolsManager(profile_); 264 extension_devtools_manager_ = new ExtensionDevToolsManager(profile_);
265 } 265 }
266 266
267 shared_->InitInfoMap(); 267 shared_->InitInfoMap();
268 268
269 extension_process_manager_.reset(ExtensionProcessManager::Create(profile_)); 269 extension_process_manager_.reset(ExtensionProcessManager::Create(profile_));
270 alarm_manager_.reset(new extensions::AlarmManager(profile_)); 270 alarm_manager_.reset(new extensions::AlarmManager(profile_,
271 &base::Time::Now));
271 272
272 shared_->Init(extensions_enabled); 273 shared_->Init(extensions_enabled);
273 } 274 }
274 275
275 ExtensionService* ExtensionSystemImpl::extension_service() { 276 ExtensionService* ExtensionSystemImpl::extension_service() {
276 return shared_->extension_service(); 277 return shared_->extension_service();
277 } 278 }
278 279
279 extensions::ManagementPolicy* ExtensionSystemImpl::management_policy() { 280 extensions::ManagementPolicy* ExtensionSystemImpl::management_policy() {
280 return shared_->management_policy(); 281 return shared_->management_policy();
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 338 }
338 339
339 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 340 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
340 const std::string& extension_id, 341 const std::string& extension_id,
341 const extension_misc::UnloadedExtensionReason reason) { 342 const extension_misc::UnloadedExtensionReason reason) {
342 BrowserThread::PostTask( 343 BrowserThread::PostTask(
343 BrowserThread::IO, FROM_HERE, 344 BrowserThread::IO, FROM_HERE,
344 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 345 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
345 extension_id, reason)); 346 extension_id, reason));
346 } 347 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698