Skip to content

Commit

Permalink
Cleanup: base/scoped_ptr.h -> base/memory/scoped_ptr.h. (part 4)
Browse files Browse the repository at this point in the history
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/7670016

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@97286 0039d316-1c4b-4281-b951-d872f2087c98
  • Loading branch information
thestig@chromium.org committed Aug 18, 2011
1 parent 87b5768 commit 7226b33
Show file tree
Hide file tree
Showing 36 changed files with 54 additions and 51 deletions.
1 change: 0 additions & 1 deletion chrome/browser/browser_main.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/field_trial.h"
#include "base/scoped_ptr.h"
#include "base/tracked_objects.h"

class BrowserThread;
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/chromeos/cros/network_library.h
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
#include <vector>

#include "base/gtest_prod_util.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/singleton.h"
#include "base/observer_list.h"
#include "base/scoped_ptr.h"
#include "base/string16.h"
#include "base/timer.h"
#include "third_party/cros/chromeos_network.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/chromeos/cros/network_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>
#include <map>

#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/chromeos/cros/network_library.h"

namespace base {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
#include "base/file_path.h"
#include "base/file_util.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
Expand Down Expand Up @@ -706,4 +706,3 @@ ComponentUpdateService* ComponentUpdateServiceFactory(
DCHECK(config);
return new CrxUpdateService(config);
}

Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@

#include "base/auto_reset.h"
#include "base/command_line.h"
#include "base/memory/scoped_ptr.h"
#include "base/metrics/histogram.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/content_settings/content_settings_pattern.h"
#include "chrome/browser/content_settings/content_settings_utils.h"
#include "chrome/browser/prefs/pref_service.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "base/utf_string_conversions.h"
#include "chrome/common/chrome_notification_types.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

#include "base/basictypes.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/common/extensions/url_pattern.h"
#include "content/common/url_constants.h"

Expand Down Expand Up @@ -145,4 +145,3 @@ const char* ContentSettingToString(ContentSetting setting) {
}

} // namespace extension_content_settings_helpers

Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,12 @@
#define CHROME_BROWSER_EXTENSIONS_EXTENSION_SETTINGS_LEVELDB_STORAGE_H_
#pragma once

#include <string>

#include "base/compiler_specific.h"
#include "base/file_path.h"
#include "base/memory/ref_counted.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/extensions/extension_settings_storage.h"
#include "third_party/leveldb/include/leveldb/db.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/extensions/extension_tts_api_controller.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <set>
#include <string>

#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/scoped_ptr.h"
#include "googleurl/src/gurl.h"

class Extension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/intents/register_intent_handler_infobar_delegate.h"
#include "chrome/browser/intents/web_intents_registry.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include <string>

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/gtest_prod_util.h"
#include "base/memory/scoped_callback_factory.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/weak_ptr.h"
#include "base/threading/non_thread_safe.h"
#include "google/cacheinvalidation/v2/system-resources.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/sync/syncable/model_type_payload_map.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "chrome/browser/sync/syncable/model_type_payload_map.h"

#include "chrome/browser/sync/engine/model_safe_worker.h"
#include <vector>

#include "base/json/json_writer.h"
#include "base/memory/scoped_ptr.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/translate/translate_manager.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <vector>

#include "base/lazy_instance.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/task.h"
#include "chrome/browser/prefs/pref_change_registrar.h"
#include "chrome/common/translate_errors.h"
Expand Down
8 changes: 4 additions & 4 deletions chrome/browser/ui/panels/panel_mouse_watcher_win.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@

#include "chrome/browser/ui/panels/panel_mouse_watcher_win.h"

#include <windows.h>

#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/panels/panel.h"
#include "chrome/browser/ui/panels/panel_manager.h"

#include <windows.h>

namespace {

HMODULE GetModuleHandleFromAddress(void *address) {
Expand Down Expand Up @@ -79,7 +79,7 @@ void PanelMouseWatcherWin::OnMouseAction(int mouse_x, int mouse_y) {
panel_manager->BringUpOrDownTitlebarForAllMinimizedPanels(bring_up_titlebar);
}

}
} // namespace

void EnsureMouseWatcherStarted() {
if (!mouse_watcher.get())
Expand Down
4 changes: 3 additions & 1 deletion chrome/browser/ui/views/infobars/infobar_view.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@

#include "chrome/browser/ui/views/infobars/infobar_view.h"

#include <algorithm>

#include "base/memory/scoped_ptr.h"
#include "base/utf_string_conversions.h"
#include "base/scoped_ptr.h"
#include "chrome/browser/tab_contents/infobar_delegate.h"
#include "chrome/browser/ui/views/infobars/infobar_background.h"
#include "chrome/browser/ui/views/infobars/infobar_button_border.h"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"
#include "chrome/browser/chromeos/login/enterprise_enrollment_screen_actor.h"
#include "chrome/browser/net/gaia/gaia_oauth_consumer.h"
Expand Down
2 changes: 1 addition & 1 deletion chrome/browser/ui/webui/tracing_ui.cc
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

#include "base/command_line.h"
#include "base/file_util.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_number_conversions.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/profiles/profile.h"
Expand Down
4 changes: 2 additions & 2 deletions chrome/common/extensions/extension_permission_set.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,9 @@
#include <vector>

#include "base/gtest_prod_util.h"
#include "base/memory/singleton.h"
#include "base/memory/ref_counted.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/string16.h"
#include "chrome/common/extensions/url_pattern_set.h"

Expand Down
10 changes: 4 additions & 6 deletions chrome/tools/ipclist/ipcfuzz.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@

#include "base/command_line.h"
#include "base/hash_tables.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/message_loop.h"
#include "base/pickle.h"
#include "base/process_util.h"
#include "base/scoped_ptr.h"
#include "base/string_number_conversions.h"
#include "base/string_util.h"
#include "base/threading/thread.h"
Expand Down Expand Up @@ -60,7 +60,7 @@ class Fuzzer {
virtual void FuzzBytes(void* data, int data_len) = 0;
};

} // Namespace IPC
} // namespace IPC

namespace {

Expand Down Expand Up @@ -90,7 +90,7 @@ void FuzzStringType(T* value, unsigned int frequency,
}
}

} // Namespace
} // namespace

// One such fuzzer implementation.
class DefaultFuzzer : public IPC::Fuzzer {
Expand All @@ -115,8 +115,7 @@ class DefaultFuzzer : public IPC::Fuzzer {
srand(new_seed);
}

if ((env_var = getenv("CHROME_IPC_FUZZING_FREQUENCY")))
{
if ((env_var = getenv("CHROME_IPC_FUZZING_FREQUENCY"))) {
unsigned int new_frequency = atoi(env_var);
if (new_frequency)
frequency_ = new_frequency;
Expand Down Expand Up @@ -685,4 +684,3 @@ extern "C" {
IPC::ChannelProxy::OutgoingMessageFilter* GetFilter(void) {
return &g_ipcfuzz;
}

2 changes: 1 addition & 1 deletion content/browser/debugger/worker_devtools_manager_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
#pragma once

#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "base/memory/singleton.h"
#include "base/scoped_ptr.h"

namespace IPC {
class Message;
Expand Down
4 changes: 2 additions & 2 deletions crypto/encryptor.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/string_piece.h"
#include "build/build_config.h"
#include "crypto/crypto_export.h"
Expand All @@ -35,7 +35,7 @@ class CRYPTO_EXPORT Encryptor {
// Only 128-bits counter is supported in this class.
class Counter {
public:
Counter(const base::StringPiece& counter);
explicit Counter(const base::StringPiece& counter);
~Counter();

// Increment the counter value.
Expand Down
2 changes: 1 addition & 1 deletion crypto/sha2.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

#include "crypto/sha2.h"

#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/stl_util.h"
#include "crypto/secure_hash.h"

Expand Down
4 changes: 3 additions & 1 deletion media/base/media_log.cc
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,11 @@

#include "media/base/media_log.h"

#include <string>

#include "base/atomic_sequence_num.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/values.h"

namespace media {
Expand Down
4 changes: 3 additions & 1 deletion media/filters/chunk_demuxer_factory.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
#ifndef MEDIA_FILTERS_CHUNK_DEMUXER_FACTORY_H_
#define MEDIA_FILTERS_CHUNK_DEMUXER_FACTORY_H_

#include "base/scoped_ptr.h"
#include <string>

#include "base/memory/scoped_ptr.h"
#include "media/base/filter_factories.h"

namespace media {
Expand Down
2 changes: 1 addition & 1 deletion media/webm/cluster_builder.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
#define MEDIA_WEBM_CLUSTER_BUILDER_H_

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/buffers.h"

namespace media {
Expand Down
9 changes: 5 additions & 4 deletions media/webm/webm_cluster_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@
#define MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_

#include <deque>
#include <string>

#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "media/base/buffers.h"
#include "media/webm/webm_parser.h"

Expand Down Expand Up @@ -44,8 +45,8 @@ class WebMClusterParser : public WebMParserClient {
virtual bool OnSimpleBlock(int track_num, int timecode, int flags,
const uint8* data, int size);

double timecode_multiplier_; // Multiplier used to convert timecodes into
// microseconds.
double timecode_multiplier_; // Multiplier used to convert timecodes into
// microseconds.
int audio_track_num_;
base::TimeDelta audio_default_duration_;
int video_track_num_;
Expand All @@ -62,4 +63,4 @@ class WebMClusterParser : public WebMParserClient {

} // namespace media

#endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
#endif // MEDIA_WEBM_WEBM_CLUSTER_PARSER_H_
2 changes: 1 addition & 1 deletion net/dns/dns_transaction.h
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
#include <vector>

#include "base/gtest_prod_util.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "base/timer.h"
#include "base/threading/non_thread_safe.h"
#include "net/base/completion_callback.h"
Expand Down
2 changes: 1 addition & 1 deletion ppapi/proxy/ppb_flash_tcp_socket_proxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
#include <map>

#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop.h"
#include "base/scoped_ptr.h"
#include "base/task.h"
#include "ppapi/c/pp_errors.h"
#include "ppapi/proxy/plugin_dispatcher.h"
Expand Down
2 changes: 1 addition & 1 deletion ppapi/shared_impl/font_impl.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
#include <string>

#include "base/basictypes.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "ppapi/c/pp_bool.h"
#include "ppapi/c/pp_stdint.h"

Expand Down
2 changes: 1 addition & 1 deletion ppapi/tests/test_transport.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include <string>

#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "ppapi/tests/test_case.h"

struct PPB_Transport_Dev;
Expand Down
2 changes: 1 addition & 1 deletion printing/pdf_metafile_skia.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

#include "base/basictypes.h"
#include "base/logging.h"
#include "base/scoped_ptr.h"
#include "base/memory/scoped_ptr.h"
#include "build/build_config.h"
#include "printing/metafile.h"

Expand Down
Loading

0 comments on commit 7226b33

Please sign in to comment.