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

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

Issue 240193003: Move Infobars core files to the Infobars component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix components/OWNERS Created 6 years, 8 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_infobar_delegate.h" 5 #include "chrome/browser/extensions/extension_infobar_delegate.h"
6 6
7 #include "chrome/browser/chrome_notification_types.h" 7 #include "chrome/browser/chrome_notification_types.h"
8 #include "chrome/browser/extensions/extension_view_host.h" 8 #include "chrome/browser/extensions/extension_view_host.h"
9 #include "chrome/browser/extensions/extension_view_host_factory.h" 9 #include "chrome/browser/extensions/extension_view_host_factory.h"
10 #include "chrome/browser/infobars/infobar.h"
11 #include "chrome/browser/infobars/infobar_service.h" 10 #include "chrome/browser/infobars/infobar_service.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/ui/browser.h" 12 #include "chrome/browser/ui/browser.h"
13 #include "components/infobars/core/infobar.h"
14 #include "content/public/browser/notification_details.h" 14 #include "content/public/browser/notification_details.h"
15 #include "content/public/browser/notification_source.h" 15 #include "content/public/browser/notification_source.h"
16 #include "extensions/common/extension.h" 16 #include "extensions/common/extension.h"
17 17
18 ExtensionInfoBarDelegate::~ExtensionInfoBarDelegate() { 18 ExtensionInfoBarDelegate::~ExtensionInfoBarDelegate() {
19 } 19 }
20 20
21 // static 21 // static
22 void ExtensionInfoBarDelegate::Create(content::WebContents* web_contents, 22 void ExtensionInfoBarDelegate::Create(content::WebContents* web_contents,
23 Browser* browser, 23 Browser* browser,
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 if (extension_view_host_.get() == 101 if (extension_view_host_.get() ==
102 content::Details<extensions::ExtensionHost>(details).ptr()) 102 content::Details<extensions::ExtensionHost>(details).ptr())
103 infobar()->RemoveSelf(); 103 infobar()->RemoveSelf();
104 } else { 104 } else {
105 DCHECK(type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED); 105 DCHECK(type == chrome::NOTIFICATION_EXTENSION_UNLOADED_DEPRECATED);
106 if (extension_ == content::Details<extensions::UnloadedExtensionInfo>( 106 if (extension_ == content::Details<extensions::UnloadedExtensionInfo>(
107 details)->extension) 107 details)->extension)
108 infobar()->RemoveSelf(); 108 infobar()->RemoveSelf();
109 } 109 }
110 } 110 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698