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

Side by Side Diff: chrome/browser/ui/webui/options/browser_options_handler.cc

Issue 498773003: Use a qualified path for chromium_strings, google_chrome_strings, and generated_resources. (part 2 … (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/options/browser_options_handler.h" 5 #include "chrome/browser/ui/webui/options/browser_options_handler.h"
6 6
7 #include <string> 7 #include <string>
8 #include <vector> 8 #include <vector>
9 9
10 #include "apps/app_window.h" 10 #include "apps/app_window.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 #include "chrome/browser/ui/chrome_select_file_policy.h" 59 #include "chrome/browser/ui/chrome_select_file_policy.h"
60 #include "chrome/browser/ui/host_desktop.h" 60 #include "chrome/browser/ui/host_desktop.h"
61 #include "chrome/browser/ui/webui/favicon_source.h" 61 #include "chrome/browser/ui/webui/favicon_source.h"
62 #include "chrome/browser/ui/webui/options/options_handlers_helper.h" 62 #include "chrome/browser/ui/webui/options/options_handlers_helper.h"
63 #include "chrome/common/chrome_constants.h" 63 #include "chrome/common/chrome_constants.h"
64 #include "chrome/common/chrome_paths.h" 64 #include "chrome/common/chrome_paths.h"
65 #include "chrome/common/chrome_switches.h" 65 #include "chrome/common/chrome_switches.h"
66 #include "chrome/common/extensions/extension_constants.h" 66 #include "chrome/common/extensions/extension_constants.h"
67 #include "chrome/common/pref_names.h" 67 #include "chrome/common/pref_names.h"
68 #include "chrome/common/url_constants.h" 68 #include "chrome/common/url_constants.h"
69 #include "chrome/grit/chromium_strings.h"
70 #include "chrome/grit/generated_resources.h"
69 #include "chromeos/chromeos_switches.h" 71 #include "chromeos/chromeos_switches.h"
70 #include "components/search_engines/template_url.h" 72 #include "components/search_engines/template_url.h"
71 #include "components/search_engines/template_url_service.h" 73 #include "components/search_engines/template_url_service.h"
72 #include "components/signin/core/browser/signin_manager.h" 74 #include "components/signin/core/browser/signin_manager.h"
73 #include "components/signin/core/common/profile_management_switches.h" 75 #include "components/signin/core/common/profile_management_switches.h"
74 #include "components/user_manager/user_type.h" 76 #include "components/user_manager/user_type.h"
75 #include "content/public/browser/browser_thread.h" 77 #include "content/public/browser/browser_thread.h"
76 #include "content/public/browser/download_manager.h" 78 #include "content/public/browser/download_manager.h"
77 #include "content/public/browser/navigation_controller.h" 79 #include "content/public/browser/navigation_controller.h"
78 #include "content/public/browser/notification_details.h" 80 #include "content/public/browser/notification_details.h"
79 #include "content/public/browser/notification_service.h" 81 #include "content/public/browser/notification_service.h"
80 #include "content/public/browser/notification_source.h" 82 #include "content/public/browser/notification_source.h"
81 #include "content/public/browser/notification_types.h" 83 #include "content/public/browser/notification_types.h"
82 #include "content/public/browser/url_data_source.h" 84 #include "content/public/browser/url_data_source.h"
83 #include "content/public/browser/user_metrics.h" 85 #include "content/public/browser/user_metrics.h"
84 #include "content/public/browser/web_contents.h" 86 #include "content/public/browser/web_contents.h"
85 #include "content/public/common/page_zoom.h" 87 #include "content/public/common/page_zoom.h"
86 #include "extensions/browser/extension_registry.h" 88 #include "extensions/browser/extension_registry.h"
87 #include "google_apis/gaia/gaia_auth_util.h" 89 #include "google_apis/gaia/gaia_auth_util.h"
88 #include "google_apis/gaia/google_service_auth_error.h" 90 #include "google_apis/gaia/google_service_auth_error.h"
89 #include "grit/chromium_strings.h"
90 #include "grit/generated_resources.h"
91 #include "grit/locale_settings.h" 91 #include "grit/locale_settings.h"
92 #include "grit/theme_resources.h" 92 #include "grit/theme_resources.h"
93 #include "third_party/skia/include/core/SkBitmap.h" 93 #include "third_party/skia/include/core/SkBitmap.h"
94 #include "ui/base/l10n/l10n_util.h" 94 #include "ui/base/l10n/l10n_util.h"
95 #include "ui/base/webui/web_ui_util.h" 95 #include "ui/base/webui/web_ui_util.h"
96 96
97 #if !defined(OS_CHROMEOS) 97 #if !defined(OS_CHROMEOS)
98 #include "chrome/browser/ui/webui/options/advanced_options_utils.h" 98 #include "chrome/browser/ui/webui/options/advanced_options_utils.h"
99 #endif 99 #endif
100 100
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after
520 IDS_HOTWORD_CONFIRM_BUBBLE_TITLE); 520 IDS_HOTWORD_CONFIRM_BUBBLE_TITLE);
521 521
522 #if defined(OS_CHROMEOS) 522 #if defined(OS_CHROMEOS)
523 Profile* profile = Profile::FromWebUI(web_ui()); 523 Profile* profile = Profile::FromWebUI(web_ui());
524 std::string username = profile->GetProfileName(); 524 std::string username = profile->GetProfileName();
525 if (username.empty()) { 525 if (username.empty()) {
526 user_manager::User* user = 526 user_manager::User* user =
527 chromeos::ProfileHelper::Get()->GetUserByProfile(profile); 527 chromeos::ProfileHelper::Get()->GetUserByProfile(profile);
528 if (user && (user->GetType() != user_manager::USER_TYPE_GUEST)) 528 if (user && (user->GetType() != user_manager::USER_TYPE_GUEST))
529 username = user->email(); 529 username = user->email();
530
531 } 530 }
532 if (!username.empty()) 531 if (!username.empty())
533 username = gaia::SanitizeEmail(gaia::CanonicalizeEmail(username)); 532 username = gaia::SanitizeEmail(gaia::CanonicalizeEmail(username));
534 533
535 values->SetString("username", username); 534 values->SetString("username", username);
536 #endif 535 #endif
537 536
538 // Pass along sync status early so it will be available during page init. 537 // Pass along sync status early so it will be available during page init.
539 values->Set("syncData", GetSyncStateDictionary().release()); 538 values->Set("syncData", GetSyncStateDictionary().release());
540 539
(...skipping 1323 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 extension = extensions::GetExtensionOverridingProxy( 1863 extension = extensions::GetExtensionOverridingProxy(
1865 Profile::FromWebUI(web_ui())); 1864 Profile::FromWebUI(web_ui()));
1866 AppendExtensionData("proxy", extension, &extension_controlled); 1865 AppendExtensionData("proxy", extension, &extension_controlled);
1867 1866
1868 web_ui()->CallJavascriptFunction("BrowserOptions.toggleExtensionIndicators", 1867 web_ui()->CallJavascriptFunction("BrowserOptions.toggleExtensionIndicators",
1869 extension_controlled); 1868 extension_controlled);
1870 #endif // defined(OS_WIN) 1869 #endif // defined(OS_WIN)
1871 } 1870 }
1872 1871
1873 } // namespace options 1872 } // namespace options
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698