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

Side by Side Diff: chrome/browser/history/shortcuts_backend.cc

Issue 15239002: Move Extension and PermissionsData to extensions/common. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 1 month 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/shortcuts_backend.h" 5 #include "chrome/browser/history/shortcuts_backend.h"
6 6
7 #include <map> 7 #include <map>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/guid.h" 13 #include "base/guid.h"
14 #include "base/i18n/case_conversion.h" 14 #include "base/i18n/case_conversion.h"
15 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
16 #include "chrome/browser/autocomplete/autocomplete_match.h" 16 #include "chrome/browser/autocomplete/autocomplete_match.h"
17 #include "chrome/browser/autocomplete/autocomplete_result.h" 17 #include "chrome/browser/autocomplete/autocomplete_result.h"
18 #include "chrome/browser/chrome_notification_types.h" 18 #include "chrome/browser/chrome_notification_types.h"
19 #include "chrome/browser/history/history_notifications.h" 19 #include "chrome/browser/history/history_notifications.h"
20 #include "chrome/browser/history/history_service.h" 20 #include "chrome/browser/history/history_service.h"
21 #include "chrome/browser/history/shortcuts_database.h" 21 #include "chrome/browser/history/shortcuts_database.h"
22 #include "chrome/browser/omnibox/omnibox_log.h" 22 #include "chrome/browser/omnibox/omnibox_log.h"
23 #include "chrome/browser/profiles/profile.h" 23 #include "chrome/browser/profiles/profile.h"
24 #include "chrome/common/chrome_constants.h" 24 #include "chrome/common/chrome_constants.h"
25 #include "chrome/common/extensions/extension.h"
26 #include "content/public/browser/browser_thread.h" 25 #include "content/public/browser/browser_thread.h"
27 #include "content/public/browser/notification_details.h" 26 #include "content/public/browser/notification_details.h"
28 #include "content/public/browser/notification_source.h" 27 #include "content/public/browser/notification_source.h"
28 #include "extensions/common/extension.h"
29 29
30 using content::BrowserThread; 30 using content::BrowserThread;
31 31
32 namespace { 32 namespace {
33 33
34 // Takes Match classification vector and removes all matched positions, 34 // Takes Match classification vector and removes all matched positions,
35 // compacting repetitions if necessary. 35 // compacting repetitions if necessary.
36 ACMatchClassifications StripMatchMarkers( 36 ACMatchClassifications StripMatchMarkers(
37 const ACMatchClassifications& matches) { 37 const ACMatchClassifications& matches) {
38 ACMatchClassifications unmatched; 38 ACMatchClassifications unmatched;
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
352 shortcuts_map_.clear(); 352 shortcuts_map_.clear();
353 guid_map_.clear(); 353 guid_map_.clear();
354 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_, 354 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_,
355 OnShortcutsChanged()); 355 OnShortcutsChanged());
356 return no_db_access_ || BrowserThread::PostTask(BrowserThread::DB, FROM_HERE, 356 return no_db_access_ || BrowserThread::PostTask(BrowserThread::DB, FROM_HERE,
357 base::Bind(base::IgnoreResult(&ShortcutsDatabase::DeleteAllShortcuts), 357 base::Bind(base::IgnoreResult(&ShortcutsDatabase::DeleteAllShortcuts),
358 db_.get())); 358 db_.get()));
359 } 359 }
360 360
361 } // namespace history 361 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/geolocation/chrome_geolocation_permission_context.cc ('k') | chrome/browser/infobars/infobar_extension_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698