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

Side by Side Diff: chrome/browser/extensions/api/omnibox/omnibox_api.cc

Issue 147923005: Split ExtensionSystem interface from ExtensionSystemImpl implementation, part 1. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: re^3base Created 6 years, 10 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/omnibox/omnibox_api.h" 5 #include "chrome/browser/extensions/api/omnibox/omnibox_api.h"
6 6
7 #include "base/json/json_writer.h" 7 #include "base/json/json_writer.h"
8 #include "base/lazy_instance.h" 8 #include "base/lazy_instance.h"
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/strings/string16.h" 10 #include "base/strings/string16.h"
11 #include "base/strings/utf_string_conversions.h" 11 #include "base/strings/utf_string_conversions.h"
12 #include "base/values.h" 12 #include "base/values.h"
13 #include "chrome/browser/chrome_notification_types.h" 13 #include "chrome/browser/chrome_notification_types.h"
14 #include "chrome/browser/extensions/extension_service.h" 14 #include "chrome/browser/extensions/extension_service.h"
15 #include "chrome/browser/extensions/extension_system.h"
16 #include "chrome/browser/extensions/tab_helper.h" 15 #include "chrome/browser/extensions/tab_helper.h"
17 #include "chrome/browser/profiles/profile.h" 16 #include "chrome/browser/profiles/profile.h"
18 #include "chrome/browser/search_engines/template_url.h" 17 #include "chrome/browser/search_engines/template_url.h"
19 #include "chrome/browser/search_engines/template_url_service.h" 18 #include "chrome/browser/search_engines/template_url_service.h"
20 #include "chrome/browser/search_engines/template_url_service_factory.h" 19 #include "chrome/browser/search_engines/template_url_service_factory.h"
21 #include "chrome/common/extensions/api/omnibox.h" 20 #include "chrome/common/extensions/api/omnibox.h"
22 #include "chrome/common/extensions/api/omnibox/omnibox_handler.h" 21 #include "chrome/common/extensions/api/omnibox/omnibox_handler.h"
23 #include "content/public/browser/notification_details.h" 22 #include "content/public/browser/notification_details.h"
24 #include "content/public/browser/notification_service.h" 23 #include "content/public/browser/notification_service.h"
25 #include "extensions/browser/event_router.h" 24 #include "extensions/browser/event_router.h"
26 #include "extensions/browser/extension_prefs.h" 25 #include "extensions/browser/extension_prefs.h"
26 #include "extensions/browser/extension_system.h"
27 #include "extensions/common/extension.h" 27 #include "extensions/common/extension.h"
28 #include "ui/gfx/image/image.h" 28 #include "ui/gfx/image/image.h"
29 29
30 namespace extensions { 30 namespace extensions {
31 31
32 namespace omnibox = api::omnibox; 32 namespace omnibox = api::omnibox;
33 namespace SendSuggestions = omnibox::SendSuggestions; 33 namespace SendSuggestions = omnibox::SendSuggestions;
34 namespace SetDefaultSuggestion = omnibox::SetDefaultSuggestion; 34 namespace SetDefaultSuggestion = omnibox::SetDefaultSuggestion;
35 35
36 namespace { 36 namespace {
(...skipping 358 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 for (size_t i = 0; i < description_styles.size(); ++i) { 395 for (size_t i = 0; i < description_styles.size(); ++i) {
396 if (description_styles[i].offset > placeholder) 396 if (description_styles[i].offset > placeholder)
397 description_styles[i].offset += replacement.length() - 2; 397 description_styles[i].offset += replacement.length() - 2;
398 } 398 }
399 } 399 }
400 400
401 match->contents.assign(description); 401 match->contents.assign(description);
402 } 402 }
403 403
404 } // namespace extensions 404 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698