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

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

Issue 709813004: Remove the deprecated function ExtensionService::extensions(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Chrome OS compile failure. Created 6 years, 1 month 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 0b52383a314b3019b8703bb7b3bcdd6dd336a230..a576002dba7f12f1fe01a3398c937f4348ff1021 100644
--- a/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
+++ b/chrome/browser/ui/cocoa/fullscreen_exit_bubble_controller.mm
@@ -20,7 +20,7 @@
#include "chrome/browser/ui/fullscreen/fullscreen_controller.h"
#include "chrome/browser/ui/fullscreen/fullscreen_exit_bubble_type.h"
#include "chrome/grit/generated_resources.h"
-#include "extensions/browser/extension_system.h"
+#include "extensions/browser/extension_registry.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMNSAnimation+Duration.h"
#include "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTweaker.h"
#import "third_party/google_toolbox_for_mac/src/AppKit/GTMUILocalizerAndLayoutTweaker.h"
@@ -258,10 +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_, extension_service));
+ extensions::ExtensionRegistry* registry =
+ extensions::ExtensionRegistry::Get(browser_->profile());
+ return SysUTF16ToNSString(
+ fullscreen_bubble::GetLabelTextForType(bubbleType_, url_, registry));
}
// This looks at the Main Menu and determines what the user has set as the

Powered by Google App Engine
This is Rietveld 408576698