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

Side by Side Diff: components/search_engines/default_search_policy_handler.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/search_engines/default_search_policy_handler.h" 5 #include "components/search_engines/default_search_policy_handler.h"
6 6
7 #include <stddef.h>
8
9 #include "base/macros.h"
7 #include "base/prefs/pref_value_map.h" 10 #include "base/prefs/pref_value_map.h"
8 #include "base/stl_util.h" 11 #include "base/stl_util.h"
9 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
10 #include "base/strings/string_util.h" 13 #include "base/strings/string_util.h"
11 #include "components/policy/core/browser/policy_error_map.h" 14 #include "components/policy/core/browser/policy_error_map.h"
12 #include "components/policy/core/common/policy_map.h" 15 #include "components/policy/core/common/policy_map.h"
13 #include "components/search_engines/default_search_manager.h" 16 #include "components/search_engines/default_search_manager.h"
14 #include "components/search_engines/search_engines_pref_names.h" 17 #include "components/search_engines/search_engines_pref_names.h"
15 #include "components/search_engines/search_terms_data.h" 18 #include "components/search_engines/search_terms_data.h"
16 #include "components/search_engines/template_url.h" 19 #include "components/search_engines/template_url.h"
(...skipping 343 matching lines...) Expand 10 before | Expand all | Expand 10 after
360 void DefaultSearchPolicyHandler::EnsureListPrefExists( 363 void DefaultSearchPolicyHandler::EnsureListPrefExists(
361 PrefValueMap* prefs, 364 PrefValueMap* prefs,
362 const std::string& path) { 365 const std::string& path) {
363 base::Value* value; 366 base::Value* value;
364 base::ListValue* list_value; 367 base::ListValue* list_value;
365 if (!prefs->GetValue(path, &value) || !value->GetAsList(&list_value)) 368 if (!prefs->GetValue(path, &value) || !value->GetAsList(&list_value))
366 prefs->SetValue(path, make_scoped_ptr(new base::ListValue())); 369 prefs->SetValue(path, make_scoped_ptr(new base::ListValue()));
367 } 370 }
368 371
369 } // namespace policy 372 } // namespace policy
OLDNEW
« no previous file with comments | « components/search_engines/default_search_policy_handler.h ('k') | components/search_engines/default_search_pref_migration.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698