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

Side by Side Diff: chrome/browser/extensions/api/history/history_api.cc

Issue 24649002: Clean up a few more unused globals. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: thestig comment Created 7 years, 2 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/extensions/api/history/history_api.h" 5 #include "chrome/browser/extensions/api/history/history_api.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/bind_helpers.h" 8 #include "base/bind_helpers.h"
9 #include "base/callback.h" 9 #include "base/callback.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 namespace DeleteUrl = api::history::DeleteUrl; 50 namespace DeleteUrl = api::history::DeleteUrl;
51 namespace DeleteRange = api::history::DeleteRange; 51 namespace DeleteRange = api::history::DeleteRange;
52 namespace GetMostVisited = api::experimental_history::GetMostVisited; 52 namespace GetMostVisited = api::experimental_history::GetMostVisited;
53 namespace GetVisits = api::history::GetVisits; 53 namespace GetVisits = api::history::GetVisits;
54 namespace OnVisited = api::history::OnVisited; 54 namespace OnVisited = api::history::OnVisited;
55 namespace OnVisitRemoved = api::history::OnVisitRemoved; 55 namespace OnVisitRemoved = api::history::OnVisitRemoved;
56 namespace Search = api::history::Search; 56 namespace Search = api::history::Search;
57 57
58 namespace { 58 namespace {
59 59
60 const char kInvalidIdError[] = "History item id is invalid.";
61 const char kInvalidUrlError[] = "Url is invalid."; 60 const char kInvalidUrlError[] = "Url is invalid.";
62 const char kDeleteProhibitedError[] = "Browsing history is not allowed to be " 61 const char kDeleteProhibitedError[] = "Browsing history is not allowed to be "
63 "deleted."; 62 "deleted.";
64 63
65 double MilliSecondsFromTime(const base::Time& time) { 64 double MilliSecondsFromTime(const base::Time& time) {
66 return 1000 * time.ToDoubleT(); 65 return 1000 * time.ToDoubleT();
67 } 66 }
68 67
69 scoped_ptr<HistoryItem> GetHistoryItem(const history::URLRow& row) { 68 scoped_ptr<HistoryItem> GetHistoryItem(const history::URLRow& row) {
70 scoped_ptr<HistoryItem> history_item(new HistoryItem()); 69 scoped_ptr<HistoryItem> history_item(new HistoryItem());
(...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after
529 } 528 }
530 529
531 return true; 530 return true;
532 } 531 }
533 532
534 void HistoryDeleteAllFunction::DeleteComplete() { 533 void HistoryDeleteAllFunction::DeleteComplete() {
535 SendAsyncResponse(); 534 SendAsyncResponse();
536 } 535 }
537 536
538 } // namespace extensions 537 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698