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

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

Issue 12853007: Don't throw exceptions when v8 objects/contexts are missing, and catch (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 9 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
« no previous file with comments | « no previous file | chrome/chrome_renderer.gypi » ('j') | chrome/renderer/extensions/console.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/base_switches.h" 7 #include "base/base_switches.h"
8 #include "base/bind.h" 8 #include "base/bind.h"
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 438 matching lines...) Expand 10 before | Expand all | Expand 10 after
449 BrowserThread::PostTask( 449 BrowserThread::PostTask(
450 BrowserThread::IO, FROM_HERE, 450 BrowserThread::IO, FROM_HERE,
451 base::Bind(&ExtensionInfoMap::AddExtension, info_map(), 451 base::Bind(&ExtensionInfoMap::AddExtension, info_map(),
452 make_scoped_refptr(extension), install_time, 452 make_scoped_refptr(extension), install_time,
453 incognito_enabled)); 453 incognito_enabled));
454 } 454 }
455 455
456 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts( 456 void ExtensionSystemImpl::UnregisterExtensionWithRequestContexts(
457 const std::string& extension_id, 457 const std::string& extension_id,
458 const extension_misc::UnloadedExtensionReason reason) { 458 const extension_misc::UnloadedExtensionReason reason) {
459 NOTREACHED();
459 BrowserThread::PostTask( 460 BrowserThread::PostTask(
460 BrowserThread::IO, FROM_HERE, 461 BrowserThread::IO, FROM_HERE,
461 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(), 462 base::Bind(&ExtensionInfoMap::RemoveExtension, info_map(),
462 extension_id, reason)); 463 extension_id, reason));
463 } 464 }
464 465
465 } // namespace extensions 466 } // namespace extensions
OLDNEW
« no previous file with comments | « no previous file | chrome/chrome_renderer.gypi » ('j') | chrome/renderer/extensions/console.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698