| OLD | NEW |
| 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 "components/omnibox/browser/shortcuts_backend.h" | 5 #include "components/omnibox/browser/shortcuts_backend.h" |
| 6 | 6 |
| 7 #include <stddef.h> |
| 8 |
| 7 #include <map> | 9 #include <map> |
| 8 #include <string> | 10 #include <string> |
| 9 #include <vector> | 11 #include <vector> |
| 10 | 12 |
| 11 #include "base/bind.h" | 13 #include "base/bind.h" |
| 12 #include "base/bind_helpers.h" | 14 #include "base/bind_helpers.h" |
| 13 #include "base/guid.h" | 15 #include "base/guid.h" |
| 14 #include "base/i18n/case_conversion.h" | 16 #include "base/i18n/case_conversion.h" |
| 15 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
| 16 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
| (...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 316 shortcuts_map_.clear(); | 318 shortcuts_map_.clear(); |
| 317 guid_map_.clear(); | 319 guid_map_.clear(); |
| 318 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_, | 320 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_, |
| 319 OnShortcutsChanged()); | 321 OnShortcutsChanged()); |
| 320 return no_db_access_ || | 322 return no_db_access_ || |
| 321 db_runner_->PostTask( | 323 db_runner_->PostTask( |
| 322 FROM_HERE, base::Bind(base::IgnoreResult( | 324 FROM_HERE, base::Bind(base::IgnoreResult( |
| 323 &ShortcutsDatabase::DeleteAllShortcuts), | 325 &ShortcutsDatabase::DeleteAllShortcuts), |
| 324 db_.get())); | 326 db_.get())); |
| 325 } | 327 } |
| OLD | NEW |