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

Side by Side Diff: chrome/browser/shell_integration_linux.cc

Issue 1832853003: DefaultBrowserWorker now fully supports opening the settings for Win10 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix mac compilation Created 4 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
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/shell_integration_linux.h" 5 #include "chrome/browser/shell_integration_linux.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 9
10 #if defined(USE_GLIB) 10 #if defined(USE_GLIB)
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 } // namespace 208 } // namespace
209 209
210 bool SetAsDefaultBrowser() { 210 bool SetAsDefaultBrowser() {
211 return SetDefaultWebClient(std::string()); 211 return SetDefaultWebClient(std::string());
212 } 212 }
213 213
214 bool SetAsDefaultProtocolClient(const std::string& protocol) { 214 bool SetAsDefaultProtocolClient(const std::string& protocol) {
215 return SetDefaultWebClient(protocol); 215 return SetDefaultWebClient(protocol);
216 } 216 }
217 217
218 DefaultWebClientSetPermission CanSetAsDefaultBrowser() { 218 DefaultWebClientSetPermission GetDefaultWebClientSetPermission() {
219 return SET_DEFAULT_UNATTENDED; 219 return SET_DEFAULT_UNATTENDED;
220 } 220 }
221 221
222 base::string16 GetApplicationNameForProtocol(const GURL& url) { 222 base::string16 GetApplicationNameForProtocol(const GURL& url) {
223 return base::ASCIIToUTF16("xdg-open"); 223 return base::ASCIIToUTF16("xdg-open");
224 } 224 }
225 225
226 DefaultWebClientState GetDefaultBrowser() { 226 DefaultWebClientState GetDefaultBrowser() {
227 return GetIsDefaultWebClient(std::string()); 227 return GetIsDefaultWebClient(std::string());
228 } 228 }
(...skipping 818 matching lines...) Expand 10 before | Expand all | Expand 10 after
1047 base::FilePath applications_menu = GetDataWriteLocation(env.get()); 1047 base::FilePath applications_menu = GetDataWriteLocation(env.get());
1048 applications_menu = applications_menu.AppendASCII("applications"); 1048 applications_menu = applications_menu.AppendASCII("applications");
1049 std::vector<base::FilePath> shortcut_filenames_app_menu = 1049 std::vector<base::FilePath> shortcut_filenames_app_menu =
1050 GetExistingProfileShortcutFilenames(profile_path, applications_menu); 1050 GetExistingProfileShortcutFilenames(profile_path, applications_menu);
1051 for (const auto& menu : shortcut_filenames_app_menu) { 1051 for (const auto& menu : shortcut_filenames_app_menu) {
1052 DeleteShortcutInApplicationsMenu(menu, base::FilePath(kDirectoryFilename)); 1052 DeleteShortcutInApplicationsMenu(menu, base::FilePath(kDirectoryFilename));
1053 } 1053 }
1054 } 1054 }
1055 1055
1056 } // namespace shell_integration_linux 1056 } // namespace shell_integration_linux
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698