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

Side by Side Diff: chrome/browser/ui/webui/chromeos/first_run/first_run_ui.cc

Issue 816403003: Make callers of CommandLine use it via the base:: namespace. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 6 years 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/first_run/first_run_ui.h" 5 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_ui.h"
6 6
7 #include "ash/shell.h" 7 #include "ash/shell.h"
8 #include "base/command_line.h" 8 #include "base/command_line.h"
9 #include "chrome/browser/profiles/profile.h" 9 #include "chrome/browser/profiles/profile.h"
10 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_handler.h" 10 #include "chrome/browser/ui/webui/chromeos/first_run/first_run_handler.h"
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 localized_strings->SetString( 51 localized_strings->SetString(
52 "helpKeepExploringButton", 52 "helpKeepExploringButton",
53 l10n_util::GetStringUTF16(IDS_FIRST_RUN_HELP_STEP_KEEP_EXPLORING_BUTTON)); 53 l10n_util::GetStringUTF16(IDS_FIRST_RUN_HELP_STEP_KEEP_EXPLORING_BUTTON));
54 localized_strings->SetString( 54 localized_strings->SetString(
55 "helpFinishButton", 55 "helpFinishButton",
56 l10n_util::GetStringUTF16(IDS_FIRST_RUN_HELP_STEP_FINISH_BUTTON)); 56 l10n_util::GetStringUTF16(IDS_FIRST_RUN_HELP_STEP_FINISH_BUTTON));
57 localized_strings->SetString( 57 localized_strings->SetString(
58 "nextButton", l10n_util::GetStringUTF16(IDS_FIRST_RUN_NEXT_BUTTON)); 58 "nextButton", l10n_util::GetStringUTF16(IDS_FIRST_RUN_NEXT_BUTTON));
59 localized_strings->SetBoolean( 59 localized_strings->SetBoolean(
60 "transitionsEnabled", 60 "transitionsEnabled",
61 CommandLine::ForCurrentProcess()->HasSwitch( 61 base::CommandLine::ForCurrentProcess()->HasSwitch(
62 chromeos::switches::kEnableFirstRunUITransitions)); 62 chromeos::switches::kEnableFirstRunUITransitions));
63 std::string shelf_alignment; 63 std::string shelf_alignment;
64 ash::Shell* shell = ash::Shell::GetInstance(); 64 ash::Shell* shell = ash::Shell::GetInstance();
65 switch (shell->GetShelfAlignment(shell->GetPrimaryRootWindow())) { 65 switch (shell->GetShelfAlignment(shell->GetPrimaryRootWindow())) {
66 case ash::SHELF_ALIGNMENT_BOTTOM: 66 case ash::SHELF_ALIGNMENT_BOTTOM:
67 shelf_alignment = kShelfAlignmentBottom; 67 shelf_alignment = kShelfAlignmentBottom;
68 break; 68 break;
69 case ash::SHELF_ALIGNMENT_LEFT: 69 case ash::SHELF_ALIGNMENT_LEFT:
70 shelf_alignment = kShelfAlignmentLeft; 70 shelf_alignment = kShelfAlignmentLeft;
71 break; 71 break;
(...skipping 27 matching lines...) Expand all
99 : WebUIController(web_ui), 99 : WebUIController(web_ui),
100 actor_(NULL) { 100 actor_(NULL) {
101 FirstRunHandler* handler = new FirstRunHandler(); 101 FirstRunHandler* handler = new FirstRunHandler();
102 actor_ = handler; 102 actor_ = handler;
103 web_ui->AddMessageHandler(handler); 103 web_ui->AddMessageHandler(handler);
104 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), CreateDataSource()); 104 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), CreateDataSource());
105 } 105 }
106 106
107 } // namespace chromeos 107 } // namespace chromeos
108 108
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/bidi_checker_web_ui_test.cc ('k') | chrome/browser/ui/webui/chromeos/keyboard_overlay_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698