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

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

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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/crashed_extension_infobar.h" 5 #include "chrome/browser/extensions/crashed_extension_infobar.h"
6 6
7 #include "app/l10n_util.h" 7 #include "app/l10n_util.h"
8 #include "app/resource_bundle.h" 8 #include "app/resource_bundle.h"
9 #include "base/utf_string_conversions.h" 9 #include "base/utf_string_conversions.h"
10 #include "chrome/browser/extensions/extensions_service.h" 10 #include "chrome/browser/extensions/extension_service.h"
11 #include "chrome/common/extensions/extension.h" 11 #include "chrome/common/extensions/extension.h"
12 #include "grit/browser_resources.h" 12 #include "grit/browser_resources.h"
13 #include "grit/generated_resources.h" 13 #include "grit/generated_resources.h"
14 #include "grit/theme_resources.h" 14 #include "grit/theme_resources.h"
15 15
16 CrashedExtensionInfoBarDelegate::CrashedExtensionInfoBarDelegate( 16 CrashedExtensionInfoBarDelegate::CrashedExtensionInfoBarDelegate(
17 TabContents* tab_contents, 17 TabContents* tab_contents,
18 ExtensionsService* extensions_service, 18 ExtensionService* extensions_service,
19 const Extension* extension) 19 const Extension* extension)
20 : ConfirmInfoBarDelegate(tab_contents), 20 : ConfirmInfoBarDelegate(tab_contents),
21 extensions_service_(extensions_service), 21 extensions_service_(extensions_service),
22 extension_id_(extension->id()), 22 extension_id_(extension->id()),
23 extension_name_(extension->name()) { 23 extension_name_(extension->name()) {
24 DCHECK(extensions_service_); 24 DCHECK(extensions_service_);
25 DCHECK(!extension_id_.empty()); 25 DCHECK(!extension_id_.empty());
26 } 26 }
27 27
28 CrashedExtensionInfoBarDelegate* CrashedExtensionInfoBarDelegate:: 28 CrashedExtensionInfoBarDelegate* CrashedExtensionInfoBarDelegate::
(...skipping 26 matching lines...) Expand all
55 return l10n_util::GetStringUTF16( 55 return l10n_util::GetStringUTF16(
56 IDS_EXTENSION_CRASHED_INFOBAR_RESTART_BUTTON); 56 IDS_EXTENSION_CRASHED_INFOBAR_RESTART_BUTTON);
57 } 57 }
58 return ConfirmInfoBarDelegate::GetButtonLabel(button); 58 return ConfirmInfoBarDelegate::GetButtonLabel(button);
59 } 59 }
60 60
61 bool CrashedExtensionInfoBarDelegate::Accept() { 61 bool CrashedExtensionInfoBarDelegate::Accept() {
62 extensions_service_->ReloadExtension(extension_id_); 62 extensions_service_->ReloadExtension(extension_id_);
63 return true; 63 return true;
64 } 64 }
OLDNEW
« no previous file with comments | « chrome/browser/extensions/crashed_extension_infobar.h ('k') | chrome/browser/extensions/crx_installer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698