| 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 "chrome/browser/autocomplete/shortcuts_backend.h" | 5 #include "components/omnibox/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" |
| (...skipping 296 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 312 shortcuts_map_.clear(); | 312 shortcuts_map_.clear(); |
| 313 guid_map_.clear(); | 313 guid_map_.clear(); |
| 314 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_, | 314 FOR_EACH_OBSERVER(ShortcutsBackendObserver, observer_list_, |
| 315 OnShortcutsChanged()); | 315 OnShortcutsChanged()); |
| 316 return no_db_access_ || | 316 return no_db_access_ || |
| 317 db_runner_->PostTask( | 317 db_runner_->PostTask( |
| 318 FROM_HERE, base::Bind(base::IgnoreResult( | 318 FROM_HERE, base::Bind(base::IgnoreResult( |
| 319 &ShortcutsDatabase::DeleteAllShortcuts), | 319 &ShortcutsDatabase::DeleteAllShortcuts), |
| 320 db_.get())); | 320 db_.get())); |
| 321 } | 321 } |
| OLD | NEW |