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

Unified Diff: ios/chrome/browser/ui/tools_menu/tools_menu_configuration.mm

Issue 2714813002: [iOS] Add Request Mobile Site cell to tools menu (Closed)
Patch Set: Fix unit test Created 3 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 side-by-side diff with in-line comments
Download patch
Index: ios/chrome/browser/ui/tools_menu/tools_menu_configuration.mm
diff --git a/ios/chrome/browser/ui/tools_menu/tools_menu_context.mm b/ios/chrome/browser/ui/tools_menu/tools_menu_configuration.mm
similarity index 88%
rename from ios/chrome/browser/ui/tools_menu/tools_menu_context.mm
rename to ios/chrome/browser/ui/tools_menu/tools_menu_configuration.mm
index c1a6d048d6de32fa1dfd3e952259dac9e5c7a95b..916eece14698d3b3a7253b859c88415f612b2010 100644
--- a/ios/chrome/browser/ui/tools_menu/tools_menu_context.mm
+++ b/ios/chrome/browser/ui/tools_menu/tools_menu_configuration.mm
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#import "ios/chrome/browser/ui/tools_menu/tools_menu_context.h"
+#import "ios/chrome/browser/ui/tools_menu/tools_menu_configuration.h"
#import "base/ios/weak_nsobject.h"
#import "base/logging.h"
#import "ios/chrome/browser/ui/reading_list/reading_list_menu_notifier.h"
+#include "ios/web/public/user_agent.h"
-@implementation ToolsMenuContext {
+@implementation ToolsMenuConfiguration {
base::WeakNSObject<UIView> _displayView;
base::WeakNSObject<UIButton> _toolsMenuButton;
base::WeakNSObject<ReadingListMenuNotifier> _readingListMenuNotifier;
@@ -17,9 +18,11 @@ @implementation ToolsMenuContext {
@synthesize inTabSwitcher = _inTabSwitcher;
@synthesize noOpenedTabs = _noOpenedTabs;
@synthesize inIncognito = _inIncognito;
+@synthesize userAgentType = _userAgentType;
- (instancetype)initWithDisplayView:(UIView*)displayView {
if (self = [super init]) {
+ _userAgentType = web::UserAgentType::NONE;
_displayView.reset(displayView);
_readingListMenuNotifier.reset();
}

Powered by Google App Engine
This is Rietveld 408576698