Skip to content

Commit

Permalink
Remove unneeded base/stl_util.h includes in headers.
Browse files Browse the repository at this point in the history
And a base/message_loop/message_loop.h include as well.
Also fix lint issues.

CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel
TBR=aboxhall@chromium.org,asanka@chromium.org,finnur@chromium.org,jochen@chromium.org

Review-Url: https://codereview.chromium.org/2231533003
Cr-Commit-Position: refs/heads/master@{#415182}
  • Loading branch information
leizleiz authored and Commit bot committed Aug 30, 2016
1 parent 9e92b9d commit cf9519f
Show file tree
Hide file tree
Showing 15 changed files with 12 additions and 22 deletions.
1 change: 0 additions & 1 deletion base/containers/scoped_ptr_hash_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#include "base/containers/hash_tables.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/stl_util.h"

namespace base {

Expand Down
9 changes: 4 additions & 5 deletions base/json/json_value_converter.h
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
#include "base/logging.h"
#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/stl_util.h"
#include "base/strings/string16.h"
#include "base/strings/string_piece.h"
#include "base/values.h"
Expand Down Expand Up @@ -200,7 +199,7 @@ class ValueFieldConverter : public ValueConverter<FieldType> {
public:
typedef bool(*ConvertFunc)(const base::Value* value, FieldType* field);

ValueFieldConverter(ConvertFunc convert_func)
explicit ValueFieldConverter(ConvertFunc convert_func)
: convert_func_(convert_func) {}

bool Convert(const base::Value& value, FieldType* field) const override {
Expand All @@ -218,7 +217,7 @@ class CustomFieldConverter : public ValueConverter<FieldType> {
public:
typedef bool(*ConvertFunc)(const StringPiece& value, FieldType* field);

CustomFieldConverter(ConvertFunc convert_func)
explicit CustomFieldConverter(ConvertFunc convert_func)
: convert_func_(convert_func) {}

bool Convert(const base::Value& value, FieldType* field) const override {
Expand Down Expand Up @@ -322,7 +321,7 @@ class RepeatedCustomValueConverter
public:
typedef bool(*ConvertFunc)(const base::Value* value, NestedType* field);

RepeatedCustomValueConverter(ConvertFunc convert_func)
explicit RepeatedCustomValueConverter(ConvertFunc convert_func)
: convert_func_(convert_func) {}

bool Convert(const base::Value& value,
Expand Down Expand Up @@ -491,7 +490,7 @@ class JSONValueConverter {
if (!value.GetAsDictionary(&dictionary_value))
return false;

for(size_t i = 0; i < fields_.size(); ++i) {
for (size_t i = 0; i < fields_.size(); ++i) {
const internal::FieldConverterBase<StructType>* field_converter =
fields_[i];
const base::Value* field = NULL;
Expand Down
1 change: 1 addition & 0 deletions cc/base/contiguous_container.cc
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

#include <stddef.h>

#include <algorithm>
#include <utility>

namespace cc {
Expand Down
2 changes: 1 addition & 1 deletion cc/base/contiguous_container.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

#include <memory>
#include <utility>
#include <vector>

#include "base/compiler_specific.h"
#include "base/logging.h"
#include "base/macros.h"
#include "base/stl_util.h"
#include "cc/base/cc_export.h"

namespace cc {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/stl_util.h"
#include "chrome/browser/chromeos/settings/cros_settings.h"
#include "google_apis/gaia/gaia_oauth_client.h"
#include "google_apis/gaia/oauth2_token_service_delegate.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/scoped_observer.h"
#include "base/stl_util.h"
#include "chrome/browser/extensions/api/image_writer_private/image_writer_private_api.h"
#include "chrome/browser/extensions/api/image_writer_private/operation.h"
#include "chrome/common/extensions/api/image_writer_private.h"
Expand Down Expand Up @@ -91,7 +90,6 @@ class OperationManager : public BrowserContextKeyedAPI,
static OperationManager* Get(content::BrowserContext* context);

private:

static const char* service_name() {
return "OperationManager";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@

#include "base/macros.h"
#include "base/memory/scoped_vector.h"
#include "base/stl_util.h"
#include "base/strings/string16.h"
#include "base/time/time.h"
#include "base/timer/timer.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
#include "base/callback.h"
#include "base/macros.h"
#include "base/observer_list.h"
#include "base/stl_util.h"
#include "base/strings/string16.h"
#include "build/build_config.h"
#include "components/autofill/core/common/password_form.h"
Expand Down
1 change: 0 additions & 1 deletion components/sync/api/sync_data.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "base/callback.h"
#include "base/memory/ref_counted.h"
#include "base/stl_util.h"
#include "base/time/time.h"
#include "components/sync/api/attachments/attachment_id.h"
#include "components/sync/base/immutable.h"
Expand Down
1 change: 0 additions & 1 deletion components/sync/engine_impl/cycle/status_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@

#include "base/logging.h"
#include "base/macros.h"
#include "base/stl_util.h"
#include "base/time/time.h"
#include "components/sync/engine/cycle/model_neutral_state.h"
#include "components/sync/engine/model_safe_worker.h"
Expand Down
6 changes: 3 additions & 3 deletions content/browser/accessibility/ax_tree_id_registry.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@
#define CONTENT_BROWSER_ACCESSIBILITY_AX_TREE_ID_REGISTRY_H_

#include <map>
#include <utility>

#include "base/macros.h"
#include "base/stl_util.h"

namespace base {
template <typename T>
Expand All @@ -20,9 +20,9 @@ namespace content {
// A class which generates a unique id given a process id and frame routing id.
class AXTreeIDRegistry {
public:
typedef std::pair<int, int> FrameID;
using FrameID = std::pair<int, int>;

typedef int AXTreeID;
using AXTreeID = int;

static const AXTreeID kNoAXTreeID;

Expand Down
2 changes: 1 addition & 1 deletion content/browser/indexed_db/indexed_db_observer_changes.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@

#include <map>
#include <memory>
#include <set>
#include <utility>
#include <vector>

#include "base/macros.h"
Expand Down
2 changes: 1 addition & 1 deletion extensions/browser/updater/request_queue_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
#include <stddef.h>

#include <algorithm>
#include <memory>
#include <utility>

#include "base/bind.h"
#include "base/compiler_specific.h"
#include "base/message_loop/message_loop.h"
#include "base/stl_util.h"
#include "extensions/browser/updater/request_queue.h"

namespace extensions {
Expand Down
1 change: 0 additions & 1 deletion net/url_request/url_request_job.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

#include "base/macros.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/power_monitor/power_observer.h"
#include "net/base/host_port_pair.h"
#include "net/base/load_states.h"
Expand Down
3 changes: 1 addition & 2 deletions ui/accessibility/ax_tree_serializer.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,10 @@
#include <stddef.h>
#include <stdint.h>

#include <set>
#include <vector>

#include "base/containers/hash_tables.h"
#include "base/logging.h"
#include "base/stl_util.h"
#include "ui/accessibility/ax_export.h"
#include "ui/accessibility/ax_tree_source.h"
#include "ui/accessibility/ax_tree_update.h"
Expand Down

0 comments on commit cf9519f

Please sign in to comment.