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

Unified Diff: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm

Issue 349073004: Cleanup: Remove deprecated Profile::GetExtensionService(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
diff --git a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
index 051bb49bd877e038a03ce4f4fb4c5ff760e000bd..32045f084d8907bce268e3a07f4f9b5166cb93dc 100644
--- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
@@ -20,6 +20,7 @@
#import "chrome/browser/ui/cocoa/info_bubble_window.h"
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
#include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
+#include "extensions/browser/extension_system.h"
#include "grit/generated_resources.h"
#include "grit/ui_strings.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h"
@@ -257,8 +258,10 @@ const float kHideDuration = 0.7;
- (NSString*)getLabelText {
if (bubbleType_ == FEB_TYPE_NONE)
return @"";
+ ExtensionService* extension_service = extensions::ExtensionSystem::Get(
+ browser_->profile())->extension_service();
return SysUTF16ToNSString(fullscreen_bubble::GetLabelTextForType(
- bubbleType_, url_, browser_->profile()->GetExtensionService()));
+ bubbleType_, url_, extension_service));
}
// This looks at the Main Menu and determines what the user has set as the

Powered by Google App Engine
This is Rietveld 408576698