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

Side by Side Diff: chrome/browser/ui/webui/options/create_profile_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 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/options/create_profile_handler.h" 5 #include "chrome/browser/ui/webui/options/create_profile_handler.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.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/profile_manager.h" 14 #include "chrome/browser/profiles/profile_manager.h"
15 #include "chrome/browser/profiles/profile_metrics.h" 15 #include "chrome/browser/profiles/profile_metrics.h"
16 #include "chrome/browser/profiles/profiles_state.h" 16 #include "chrome/browser/profiles/profiles_state.h"
17 #include "chrome/browser/supervised_user/supervised_user_registration_utility.h" 17 #include "chrome/browser/supervised_user/supervised_user_registration_utility.h"
18 #include "chrome/browser/supervised_user/supervised_user_service.h" 18 #include "chrome/browser/supervised_user/supervised_user_service.h"
19 #include "chrome/browser/supervised_user/supervised_user_service_factory.h" 19 #include "chrome/browser/supervised_user/supervised_user_service_factory.h"
20 #include "chrome/browser/supervised_user/supervised_user_sync_service.h" 20 #include "chrome/browser/supervised_user/supervised_user_sync_service.h"
21 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h" 21 #include "chrome/browser/supervised_user/supervised_user_sync_service_factory.h"
22 #include "chrome/browser/sync/profile_sync_service.h" 22 #include "chrome/browser/sync/profile_sync_service.h"
23 #include "chrome/browser/sync/profile_sync_service_factory.h" 23 #include "chrome/browser/sync/profile_sync_service_factory.h"
24 #include "chrome/browser/ui/webui/options/options_handlers_helper.h" 24 #include "chrome/browser/ui/webui/options/options_handlers_helper.h"
25 #include "chrome/common/pref_names.h" 25 #include "chrome/common/pref_names.h"
26 #include "grit/generated_resources.h" 26 #include "chrome/grit/generated_resources.h"
27 #include "ui/base/l10n/l10n_util.h" 27 #include "ui/base/l10n/l10n_util.h"
28 28
29 namespace options { 29 namespace options {
30 30
31 CreateProfileHandler::CreateProfileHandler() 31 CreateProfileHandler::CreateProfileHandler()
32 : profile_creation_type_(NO_CREATION_IN_PROGRESS), 32 : profile_creation_type_(NO_CREATION_IN_PROGRESS),
33 weak_ptr_factory_(this) { 33 weak_ptr_factory_(this) {
34 } 34 }
35 35
36 CreateProfileHandler::~CreateProfileHandler() { 36 CreateProfileHandler::~CreateProfileHandler() {
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 g_browser_process->profile_manager()->GetProfileInfoCache(); 425 g_browser_process->profile_manager()->GetProfileInfoCache();
426 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) { 426 for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i) {
427 if (existing_supervised_user_id == 427 if (existing_supervised_user_id ==
428 cache.GetSupervisedUserIdOfProfileAtIndex(i)) 428 cache.GetSupervisedUserIdOfProfileAtIndex(i))
429 return false; 429 return false;
430 } 430 }
431 return true; 431 return true;
432 } 432 }
433 433
434 } // namespace options 434 } // namespace options
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/core_options_handler.cc ('k') | chrome/browser/ui/webui/options/easy_unlock_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698