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

Side by Side Diff: chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler.cc

Issue 843873002: cros: Update help for enable dev UI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 11 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/app/chromeos_strings.grdp ('k') | no next file » | 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) 2014 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2014 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/ui/webui/chromeos/login/enable_debugging_screen_handler .h" 5 #include "chrome/browser/ui/webui/chromeos/login/enable_debugging_screen_handler .h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/prefs/pref_registry_simple.h" 10 #include "base/prefs/pref_registry_simple.h"
(...skipping 269 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 void EnableDebuggingScreenHandler::HandleOnLearnMore() { 280 void EnableDebuggingScreenHandler::HandleOnLearnMore() {
281 VLOG(1) << "Trying to view the help article about debugging features."; 281 VLOG(1) << "Trying to view the help article about debugging features.";
282 const std::string help_content = 282 const std::string help_content =
283 l10n_util::GetStringUTF8(IDS_ENABLE_DEBUGGING_HELP); 283 l10n_util::GetStringUTF8(IDS_ENABLE_DEBUGGING_HELP);
284 const GURL data_url = GURL("data:text/html;charset=utf-8," + help_content); 284 const GURL data_url = GURL("data:text/html;charset=utf-8," + help_content);
285 285
286 LoginWebDialog* dialog = new LoginWebDialog( 286 LoginWebDialog* dialog = new LoginWebDialog(
287 Profile::FromWebUI(web_ui()), 287 Profile::FromWebUI(web_ui()),
288 NULL, 288 NULL,
289 GetNativeWindow(), 289 GetNativeWindow(),
290 l10n_util::GetStringUTF16(IDS_ENABLE_DEBUGGING_SCREEN_TITLE), 290 base::string16(),
291 data_url); 291 data_url);
292 dialog->Show(); 292 dialog->Show();
293 } 293 }
294 294
295 } // namespace chromeos 295 } // namespace chromeos
OLDNEW
« no previous file with comments | « chrome/app/chromeos_strings.grdp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698