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

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: Merge with r141780 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 258 matching lines...) Expand 10 before | Expand all | Expand 10 after
269 269
270 const CommandLine* command_line = CommandLine::ForCurrentProcess(); 270 const CommandLine* command_line = CommandLine::ForCurrentProcess();
271 if (command_line->HasSwitch( 271 if (command_line->HasSwitch(
272 switches::kEnableExtensionTimelineApi)) { 272 switches::kEnableExtensionTimelineApi)) {
273 extension_devtools_manager_ = new ExtensionDevToolsManager(profile_); 273 extension_devtools_manager_ = new ExtensionDevToolsManager(profile_);
274 } 274 }
275 275
276 shared_->InitInfoMap(); 276 shared_->InitInfoMap();
277 277
278 extension_process_manager_.reset(ExtensionProcessManager::Create(profile_)); 278 extension_process_manager_.reset(ExtensionProcessManager::Create(profile_));
279 alarm_manager_.reset(new extensions::AlarmManager(profile_)); 279 alarm_manager_.reset(new extensions::AlarmManager(profile_,
280 &base::Time::Now));
280 281
281 shared_->Init(extensions_enabled); 282 shared_->Init(extensions_enabled);
282 } 283 }
283 284
284 ExtensionService* ExtensionSystemImpl::extension_service() { 285 ExtensionService* ExtensionSystemImpl::extension_service() {
285 return shared_->extension_service(); 286 return shared_->extension_service();
286 } 287 }
287 288
288 extensions::ManagementPolicy* ExtensionSystemImpl::management_policy() { 289 extensions::ManagementPolicy* ExtensionSystemImpl::management_policy() {
289 return shared_->management_policy(); 290 return shared_->management_policy();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
350 } 351 }
351 352
352 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 353 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
353 const std::string& extension_id, 354 const std::string& extension_id,
354 const extension_misc::UnloadedExtensionReason reason) { 355 const extension_misc::UnloadedExtensionReason reason) {
355 BrowserThread::PostTask( 356 BrowserThread::PostTask(
356 BrowserThread::IO, FROM_HERE, 357 BrowserThread::IO, FROM_HERE,
357 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 358 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
358 extension_id, reason)); 359 extension_id, reason));
359 } 360 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/api/alarms/alarms_api_unittest.cc ('k') | chrome/browser/extensions/test_extension_system.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698