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

Side by Side Diff: chrome/browser/command_updater.cc

Issue 107001: Move scoped_vector.h and stl_util-inl.h to base/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 7 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
« no previous file with comments | « chrome/browser/cert_store.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "chrome/browser/command_updater.h" 7 #include "chrome/browser/command_updater.h"
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "chrome/common/stl_util-inl.h" 10 #include "base/stl_util-inl.h"
11 11
12 CommandUpdater::CommandUpdater(CommandUpdaterDelegate* handler) 12 CommandUpdater::CommandUpdater(CommandUpdaterDelegate* handler)
13 : delegate_(handler) { 13 : delegate_(handler) {
14 } 14 }
15 15
16 CommandUpdater::~CommandUpdater() { 16 CommandUpdater::~CommandUpdater() {
17 STLDeleteContainerPairSecondPointers(commands_.begin(), commands_.end()); 17 STLDeleteContainerPairSecondPointers(commands_.begin(), commands_.end());
18 } 18 }
19 19
20 bool CommandUpdater::IsCommandEnabled(int id) const { 20 bool CommandUpdater::IsCommandEnabled(int id) const {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 void CommandUpdater::RemoveCommandObserver(CommandObserver* observer) { 63 void CommandUpdater::RemoveCommandObserver(CommandObserver* observer) {
64 for (CommandMap::const_iterator it = commands_.begin(); 64 for (CommandMap::const_iterator it = commands_.begin();
65 it != commands_.end(); 65 it != commands_.end();
66 ++it) { 66 ++it) {
67 Command* command = it->second; 67 Command* command = it->second;
68 if (command) 68 if (command)
69 command->observers.RemoveObserver(observer); 69 command->observers.RemoveObserver(observer);
70 } 70 }
71 } 71 }
OLDNEW
« no previous file with comments | « chrome/browser/cert_store.cc ('k') | chrome/browser/dom_ui/dom_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698