| OLD | NEW |
| 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" |
| 11 #include "chrome/common/url_constants.h" | 11 #include "chrome/common/url_constants.h" |
| 12 #include "chrome/grit/chromium_strings.h" |
| 13 #include "chrome/grit/generated_resources.h" |
| 12 #include "chromeos/chromeos_switches.h" | 14 #include "chromeos/chromeos_switches.h" |
| 13 #include "content/public/browser/web_ui.h" | 15 #include "content/public/browser/web_ui.h" |
| 14 #include "content/public/browser/web_ui_data_source.h" | 16 #include "content/public/browser/web_ui_data_source.h" |
| 15 #include "grit/browser_resources.h" | 17 #include "grit/browser_resources.h" |
| 16 #include "grit/chromium_strings.h" | |
| 17 #include "grit/generated_resources.h" | |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/base/webui/web_ui_util.h" | 19 #include "ui/base/webui/web_ui_util.h" |
| 20 | 20 |
| 21 namespace { | 21 namespace { |
| 22 | 22 |
| 23 const char kFirstRunJSPath[] = "first_run.js"; | 23 const char kFirstRunJSPath[] = "first_run.js"; |
| 24 const char kShelfAlignmentBottom[] = "bottom"; | 24 const char kShelfAlignmentBottom[] = "bottom"; |
| 25 const char kShelfAlignmentLeft[] = "left"; | 25 const char kShelfAlignmentLeft[] = "left"; |
| 26 const char kShelfAlignmentRight[] = "right"; | 26 const char kShelfAlignmentRight[] = "right"; |
| 27 | 27 |
| (...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 : WebUIController(web_ui), | 100 : WebUIController(web_ui), |
| 101 actor_(NULL) { | 101 actor_(NULL) { |
| 102 FirstRunHandler* handler = new FirstRunHandler(); | 102 FirstRunHandler* handler = new FirstRunHandler(); |
| 103 actor_ = handler; | 103 actor_ = handler; |
| 104 web_ui->AddMessageHandler(handler); | 104 web_ui->AddMessageHandler(handler); |
| 105 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), CreateDataSource()); | 105 content::WebUIDataSource::Add(Profile::FromWebUI(web_ui), CreateDataSource()); |
| 106 } | 106 } |
| 107 | 107 |
| 108 } // namespace chromeos | 108 } // namespace chromeos |
| 109 | 109 |
| OLD | NEW |