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

Side by Side Diff: chrome/browser/managed_mode/managed_user_service.cc

Issue 16561007: Use a direct include of utf_string_conversions.h in chrome/browser/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 6 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) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/managed_mode/managed_user_service.h" 5 #include "chrome/browser/managed_mode/managed_user_service.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/metrics/field_trial.h" 9 #include "base/metrics/field_trial.h"
10 #include "base/prefs/pref_service.h" 10 #include "base/prefs/pref_service.h"
11 #include "base/sequenced_task_runner.h" 11 #include "base/sequenced_task_runner.h"
12 #include "base/utf_string_conversions.h" 12 #include "base/strings/utf_string_conversions.h"
13 #include "chrome/browser/extensions/extension_service.h" 13 #include "chrome/browser/extensions/extension_service.h"
14 #include "chrome/browser/extensions/extension_system.h" 14 #include "chrome/browser/extensions/extension_system.h"
15 #include "chrome/browser/managed_mode/managed_mode_site_list.h" 15 #include "chrome/browser/managed_mode/managed_mode_site_list.h"
16 #include "chrome/browser/managed_mode/managed_user_registration_service.h" 16 #include "chrome/browser/managed_mode/managed_user_registration_service.h"
17 #include "chrome/browser/managed_mode/managed_user_registration_service_factory. h" 17 #include "chrome/browser/managed_mode/managed_user_registration_service_factory. h"
18 #include "chrome/browser/policy/managed_mode_policy_provider.h" 18 #include "chrome/browser/policy/managed_mode_policy_provider.h"
19 #include "chrome/browser/policy/profile_policy_connector.h" 19 #include "chrome/browser/policy/profile_policy_connector.h"
20 #include "chrome/browser/policy/profile_policy_connector_factory.h" 20 #include "chrome/browser/policy/profile_policy_connector_factory.h"
21 #include "chrome/browser/prefs/scoped_user_pref_update.h" 21 #include "chrome/browser/prefs/scoped_user_pref_update.h"
22 #include "chrome/browser/profiles/profile.h" 22 #include "chrome/browser/profiles/profile.h"
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 profile_->GetPrefs()->GetDictionary(prefs::kManagedModeManualURLs); 579 profile_->GetPrefs()->GetDictionary(prefs::kManagedModeManualURLs);
580 scoped_ptr<std::map<GURL, bool> > url_map(new std::map<GURL, bool>()); 580 scoped_ptr<std::map<GURL, bool> > url_map(new std::map<GURL, bool>());
581 for (DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) { 581 for (DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) {
582 bool allow = false; 582 bool allow = false;
583 bool result = it.value().GetAsBoolean(&allow); 583 bool result = it.value().GetAsBoolean(&allow);
584 DCHECK(result); 584 DCHECK(result);
585 (*url_map)[GURL(it.key())] = allow; 585 (*url_map)[GURL(it.key())] = allow;
586 } 586 }
587 url_filter_context_.SetManualURLs(url_map.Pass()); 587 url_filter_context_.SetManualURLs(url_map.Pass());
588 } 588 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698