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

Unified Diff: chrome/browser/ui/webui/settings_utils_mac.mm

Issue 1789543003: MD Settings: move AdvancedOptionsUtilities to a settings-accessible place (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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: chrome/browser/ui/webui/settings_utils_mac.mm
diff --git a/chrome/browser/ui/webui/options/advanced_options_utils_mac.mm b/chrome/browser/ui/webui/settings_utils_mac.mm
similarity index 75%
rename from chrome/browser/ui/webui/options/advanced_options_utils_mac.mm
rename to chrome/browser/ui/webui/settings_utils_mac.mm
index c294b86904accfd5b9c341d13faeddcfade32a5a..1f68f49dae76f40078fb7fca2922d7fea7b175a3 100644
--- a/chrome/browser/ui/webui/options/advanced_options_utils_mac.mm
+++ b/chrome/browser/ui/webui/settings_utils_mac.mm
@@ -1,21 +1,18 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
+// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#import <Cocoa/Cocoa.h>
-#include "chrome/browser/ui/webui/options/advanced_options_utils.h"
+#include "chrome/browser/ui/webui/settings_utils.h"
#include "base/logging.h"
#include "base/mac/mac_logging.h"
#include "base/mac/scoped_aedesc.h"
-using content::WebContents;
+namespace settings_utils {
-namespace options {
-
-void AdvancedOptionsUtilities::ShowNetworkProxySettings(
- WebContents* web_contents) {
+void ShowNetworkProxySettings(content::WebContents* web_contents) {
NSArray* itemsToOpen = [NSArray arrayWithObject:[NSURL fileURLWithPath:
@"/System/Library/PreferencePanes/Network.prefPane"]];
@@ -35,8 +32,7 @@ void AdvancedOptionsUtilities::ShowNetworkProxySettings(
LSOpenFromURLSpec(&launchSpec, NULL);
}
-void AdvancedOptionsUtilities::ShowManageSSLCertificates(
- WebContents* web_contents) {
+void ShowManageSSLCertificates(content::WebContents* web_contents) {
NSString* const kKeychainBundleId = @"com.apple.keychainaccess";
[[NSWorkspace sharedWorkspace]
launchAppWithBundleIdentifier:kKeychainBundleId
@@ -45,4 +41,4 @@ void AdvancedOptionsUtilities::ShowManageSSLCertificates(
launchIdentifier:nil];
}
-} // namespace options
+} // namespace settings_utils

Powered by Google App Engine
This is Rietveld 408576698