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

Side by Side Diff: chrome/browser/chromeos/drive/search_metadata.cc

Issue 1190203002: Move (most of) chrome/browser/drive into components/drive/service. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebasing... Created 5 years, 5 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
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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/chromeos/drive/search_metadata.h" 5 #include "chrome/browser/chromeos/drive/search_metadata.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <queue> 8 #include <queue>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/i18n/string_search.h" 11 #include "base/i18n/string_search.h"
12 #include "base/metrics/histogram.h" 12 #include "base/metrics/histogram.h"
13 #include "base/strings/utf_string_conversions.h" 13 #include "base/strings/utf_string_conversions.h"
14 #include "base/time/time.h" 14 #include "base/time/time.h"
15 #include "chrome/browser/chromeos/drive/file_system_core_util.h" 15 #include "chrome/browser/chromeos/drive/file_system_core_util.h"
16 #include "chrome/browser/drive/drive_api_util.h" 16 #include "components/drive/drive_api_util.h"
17 #include "net/base/escape.h" 17 #include "net/base/escape.h"
18 18
19 namespace drive { 19 namespace drive {
20 namespace internal { 20 namespace internal {
21 21
22 namespace { 22 namespace {
23 23
24 struct ResultCandidate { 24 struct ResultCandidate {
25 ResultCandidate(const std::string& local_id, 25 ResultCandidate(const std::string& local_id,
26 const ResourceEntry& entry, 26 const ResourceEntry& entry,
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after
326 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(pre))); 326 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(pre)));
327 highlighted_text->append("<b>"); 327 highlighted_text->append("<b>");
328 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(match))); 328 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(match)));
329 highlighted_text->append("</b>"); 329 highlighted_text->append("</b>");
330 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(post))); 330 highlighted_text->append(net::EscapeForHTML(base::UTF16ToUTF8(post)));
331 return true; 331 return true;
332 } 332 }
333 333
334 } // namespace internal 334 } // namespace internal
335 } // namespace drive 335 } // namespace drive
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/drive/resource_metadata_storage.cc ('k') | chrome/browser/chromeos/drive/search_metadata_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698