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

Side by Side Diff: chrome/browser/automation/automation_provider.cc

Issue 2865003: Working towards -Wextra... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « base/third_party/dmg_fp/mac_wextra.patch ('k') | chrome/browser/cocoa/objc_zombie.mm » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/automation/automation_provider.h" 5 #include "chrome/browser/automation/automation_provider.h"
6 6
7 #include <set> 7 #include <set>
8 8
9 #include "app/l10n_util.h" 9 #include "app/l10n_util.h"
10 #include "app/message_box_flags.h" 10 #include "app/message_box_flags.h"
(...skipping 845 matching lines...) Expand 10 before | Expand all | Expand 10 after
856 *result = true; 856 *result = true;
857 } else { 857 } else {
858 *result = false; 858 *result = false;
859 } 859 }
860 } 860 }
861 861
862 void AutomationProvider::GetBrowserWindow(int index, int* handle) { 862 void AutomationProvider::GetBrowserWindow(int index, int* handle) {
863 *handle = 0; 863 *handle = 0;
864 if (index >= 0) { 864 if (index >= 0) {
865 BrowserList::const_iterator iter = BrowserList::begin(); 865 BrowserList::const_iterator iter = BrowserList::begin();
866 for (; (iter != BrowserList::end()) && (index > 0); ++iter, --index); 866 for (; (iter != BrowserList::end()) && (index > 0); ++iter, --index) {}
867 if (iter != BrowserList::end()) { 867 if (iter != BrowserList::end()) {
868 *handle = browser_tracker_->Add(*iter); 868 *handle = browser_tracker_->Add(*iter);
869 } 869 }
870 } 870 }
871 } 871 }
872 872
873 void AutomationProvider::FindNormalBrowserWindow(int* handle) { 873 void AutomationProvider::FindNormalBrowserWindow(int* handle) {
874 *handle = 0; 874 *handle = 0;
875 Browser* browser = BrowserList::FindBrowserWithType(profile_, 875 Browser* browser = BrowserList::FindBrowserWithType(profile_,
876 Browser::TYPE_NORMAL, 876 Browser::TYPE_NORMAL,
(...skipping 2550 matching lines...) Expand 10 before | Expand all | Expand 10 after
3427 } 3427 }
3428 3428
3429 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) { 3429 void AutomationProvider::WaitForPopupMenuToOpen(IPC::Message* reply_message) {
3430 NOTIMPLEMENTED(); 3430 NOTIMPLEMENTED();
3431 } 3431 }
3432 #endif // !defined(TOOLKIT_VIEWS) 3432 #endif // !defined(TOOLKIT_VIEWS)
3433 3433
3434 void AutomationProvider::ResetToDefaultTheme() { 3434 void AutomationProvider::ResetToDefaultTheme() {
3435 profile_->ClearTheme(); 3435 profile_->ClearTheme();
3436 } 3436 }
OLDNEW
« no previous file with comments | « base/third_party/dmg_fp/mac_wextra.patch ('k') | chrome/browser/cocoa/objc_zombie.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698