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

Side by Side Diff: chrome/browser/history/android/android_urls_sql_handler.cc

Issue 10796020: Upgrade AlignedMemory to support dynamic allocations. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change AlignedMemory back to POD. Retry now that NaCl fixed. Created 8 years, 4 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/history/android/android_urls_sql_handler.h" 5 #include "chrome/browser/history/android/android_urls_sql_handler.h"
6 6
7 #include "base/logging.h"
7 #include "chrome/browser/history/history_database.h" 8 #include "chrome/browser/history/history_database.h"
8 9
9 namespace history { 10 namespace history {
10 11
11 namespace { 12 namespace {
12 13
13 // The interesting columns of this handler. 14 // The interesting columns of this handler.
14 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = { 15 const HistoryAndBookmarkRow::ColumnID kInterestingColumns[] = {
15 HistoryAndBookmarkRow::RAW_URL, HistoryAndBookmarkRow::URL_ID }; 16 HistoryAndBookmarkRow::RAW_URL, HistoryAndBookmarkRow::URL_ID };
16 17
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 id != ids_set.end(); ++id) 53 id != ids_set.end(); ++id)
53 ids.push_back(id->url_id); 54 ids.push_back(id->url_id);
54 55
55 if (!ids.size()) 56 if (!ids.size())
56 return true; 57 return true;
57 58
58 return history_db_->DeleteAndroidURLRows(ids); 59 return history_db_->DeleteAndroidURLRows(ids);
59 } 60 }
60 61
61 } // namespace history. 62 } // namespace history.
OLDNEW
« no previous file with comments | « base/memory/aligned_memory_unittest.cc ('k') | chrome/browser/ui/find_bar/find_bar_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698