OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/options2/manage_profile_handler2.h" | 5 #include "chrome/browser/ui/webui/options2/manage_profile_handler2.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/string_number_conversions.h" | 9 #include "base/string_number_conversions.h" |
10 #include "base/utf_string_conversions.h" | 10 #include "base/utf_string_conversions.h" |
11 #include "base/value_conversions.h" | 11 #include "base/value_conversions.h" |
12 #include "base/values.h" | 12 #include "base/values.h" |
13 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
14 #include "chrome/browser/profiles/gaia_info_update_service.h" | 14 #include "chrome/browser/profiles/gaia_info_update_service.h" |
15 #include "chrome/browser/profiles/profile_info_cache.h" | 15 #include "chrome/browser/profiles/profile_info_cache.h" |
16 #include "chrome/browser/profiles/profile_info_util.h" | 16 #include "chrome/browser/profiles/profile_info_util.h" |
17 #include "chrome/browser/profiles/profile_manager.h" | 17 #include "chrome/browser/profiles/profile_manager.h" |
18 #include "chrome/browser/profiles/profile_metrics.h" | 18 #include "chrome/browser/profiles/profile_metrics.h" |
19 #include "chrome/browser/ui/webui/web_ui_util.h" | 19 #include "chrome/browser/ui/webui/web_ui_util.h" |
20 #include "chrome/common/chrome_notification_types.h" | 20 #include "chrome/common/chrome_notification_types.h" |
| 21 #include "content/browser/webui/web_ui.h" |
21 #include "content/public/browser/notification_service.h" | 22 #include "content/public/browser/notification_service.h" |
22 #include "grit/generated_resources.h" | 23 #include "grit/generated_resources.h" |
23 | 24 |
24 namespace options2 { | 25 namespace options2 { |
25 | 26 |
26 ManageProfileHandler::ManageProfileHandler() { | 27 ManageProfileHandler::ManageProfileHandler() { |
27 } | 28 } |
28 | 29 |
29 ManageProfileHandler::~ManageProfileHandler() { | 30 ManageProfileHandler::~ManageProfileHandler() { |
30 } | 31 } |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 string16 gaia_name = cache.GetGAIANameOfProfileAtIndex(i); | 295 string16 gaia_name = cache.GetGAIANameOfProfileAtIndex(i); |
295 if (gaia_name.empty()) | 296 if (gaia_name.empty()) |
296 return; | 297 return; |
297 | 298 |
298 StringValue gaia_name_value(gaia_name); | 299 StringValue gaia_name_value(gaia_name); |
299 web_ui()->CallJavascriptFunction("ManageProfileOverlay.setProfileName", | 300 web_ui()->CallJavascriptFunction("ManageProfileOverlay.setProfileName", |
300 gaia_name_value); | 301 gaia_name_value); |
301 } | 302 } |
302 | 303 |
303 } // namespace options2 | 304 } // namespace options2 |
OLD | NEW |