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

Side by Side Diff: chrome/browser/ui/chrome_pages.h

Issue 2027813003: [MD Settings] Add feature to enable md-settings by default. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_ 5 #ifndef CHROME_BROWSER_UI_CHROME_PAGES_H_
6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_ 6 #define CHROME_BROWSER_UI_CHROME_PAGES_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // |browser| should be NULL if there are no currently open browser windows. 50 // |browser| should be NULL if there are no currently open browser windows.
51 void ShowFeedbackPage(Browser* browser, 51 void ShowFeedbackPage(Browser* browser,
52 const std::string& description_template, 52 const std::string& description_template,
53 const std::string& category_tag); 53 const std::string& category_tag);
54 54
55 void ShowHelp(Browser* browser, HelpSource source); 55 void ShowHelp(Browser* browser, HelpSource source);
56 void ShowHelpForProfile(Profile* profile, HelpSource source); 56 void ShowHelpForProfile(Profile* profile, HelpSource source);
57 void ShowPolicy(Browser* browser); 57 void ShowPolicy(Browser* browser);
58 void ShowSlow(Browser* browser); 58 void ShowSlow(Browser* browser);
59 59
60 // For the transition to Material Design settings, Chrome needs to temporarily
61 // support two different settings pages - "legacy" and "MD Settings". Depending
62 // on a feature flag, chrome://settings will point to one of them, while the
63 // other one is reachable via chrome://legacy-settings and chrome://md-settings,
64 // respectively.
65 std::string GetLegacySettingsHost();
66 std::string GetMdSettingsHost();
67
60 // Constructs a settings GURL for the specified |sub_page|. 68 // Constructs a settings GURL for the specified |sub_page|.
61 GURL GetSettingsUrl(const std::string& sub_page); 69 GURL GetSettingsUrl(const std::string& sub_page);
62 70
63 // Returns true if |url| is the URL for the settings subpage |sub_page|. 71 // Returns true if |url| is the URL for the settings subpage |sub_page|.
64 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page); 72 bool IsSettingsSubPage(const GURL& url, const std::string& sub_page);
65 73
66 // Returns true if |browser| is a trusted popup window containing a page with 74 // Returns true if |browser| is a trusted popup window containing a page with
67 // matching |scheme| (or any trusted popup if |scheme| is empty). 75 // matching |scheme| (or any trusted popup if |scheme| is empty).
68 bool IsTrustedPopupWindowWithScheme(const Browser* browser, 76 bool IsTrustedPopupWindowWithScheme(const Browser* browser,
69 const std::string& scheme); 77 const std::string& scheme);
(...skipping 26 matching lines...) Expand all
96 104
97 // If the user is already signed in, shows the "Signin" portion of Settings, 105 // If the user is already signed in, shows the "Signin" portion of Settings,
98 // otherwise initiates signin in a new browser tab. 106 // otherwise initiates signin in a new browser tab.
99 void ShowBrowserSigninOrSettings(Browser* browser, 107 void ShowBrowserSigninOrSettings(Browser* browser,
100 signin_metrics::AccessPoint access_point); 108 signin_metrics::AccessPoint access_point);
101 #endif 109 #endif
102 110
103 } // namespace chrome 111 } // namespace chrome
104 112
105 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_ 113 #endif // CHROME_BROWSER_UI_CHROME_PAGES_H_
OLDNEW
« no previous file with comments | « chrome/browser/browser_about_handler.cc ('k') | chrome/browser/ui/chrome_pages.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698