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

Side by Side Diff: chrome/browser/ui/webui/settings/about_handler.h

Issue 2094703005: MD Settings: Fix broken regulatory label in About on Samus (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
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEBUI_SETTINGS_ABOUT_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ 6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <string> 9 #include <string>
10 10
(...skipping 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 // Callback method which forwards promotion state to the page. 119 // Callback method which forwards promotion state to the page.
120 void SetPromotionState(VersionUpdater::PromotionState state); 120 void SetPromotionState(VersionUpdater::PromotionState state);
121 #endif 121 #endif
122 122
123 #if defined(OS_CHROMEOS) 123 #if defined(OS_CHROMEOS)
124 void HandleGetRegulatoryInfo(const base::ListValue* args); 124 void HandleGetRegulatoryInfo(const base::ListValue* args);
125 125
126 // Callback for when the directory with the regulatory label image and alt 126 // Callback for when the directory with the regulatory label image and alt
127 // text has been found. 127 // text has been found.
128 void OnRegulatoryLabelDirFound(std::string callback_id, 128 void OnRegulatoryLabelDirFound(std::string callback_id,
129 const base::FilePath& path); 129 const base::FilePath& label_dir);
130 130
131 // Callback for when the regulatory text has been read. 131 // Callback for when the regulatory text has been read.
132 void OnRegulatoryLabelTextRead(std::string callback_id, 132 void OnRegulatoryLabelTextRead(std::string callback_id,
133 const base::FilePath& path, 133 const base::FilePath& label_dir,
134 const std::string& text); 134 const std::string& text);
135 #endif 135 #endif
136 136
137 // Specialized instance of the VersionUpdater used to update the browser. 137 // Specialized instance of the VersionUpdater used to update the browser.
138 std::unique_ptr<VersionUpdater> version_updater_; 138 std::unique_ptr<VersionUpdater> version_updater_;
139 139
140 // Used to observe notifications. 140 // Used to observe notifications.
141 content::NotificationRegistrar registrar_; 141 content::NotificationRegistrar registrar_;
142 142
143 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy. 143 // Used to observe changes in the |kDeviceAutoUpdateDisabled| policy.
144 std::unique_ptr<policy::PolicyChangeRegistrar> policy_registrar_; 144 std::unique_ptr<policy::PolicyChangeRegistrar> policy_registrar_;
145 145
146 // Used for callbacks. 146 // Used for callbacks.
147 base::WeakPtrFactory<AboutHandler> weak_factory_; 147 base::WeakPtrFactory<AboutHandler> weak_factory_;
148 148
149 DISALLOW_COPY_AND_ASSIGN(AboutHandler); 149 DISALLOW_COPY_AND_ASSIGN(AboutHandler);
150 }; 150 };
151 151
152 } // namespace settings 152 } // namespace settings
153 153
154 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_ 154 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_ABOUT_HANDLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698